package org.apache.wicket.util.value;
A
Map interface that holds values, parses
Strings, and exposes a
variety of convenience methods.
- Author(s):
- Johan Compagner
- Since:
- 1.2.6
Retrieves a
boolean value by key.
Retrieves a
double value by key.
Retrieves a
double value by key, using a default value if not found.
Retrieves a
Duration by key.
Retrieves an
int value by key.
Retrieves an
int value by key, using a default value if not found.
Retrieves a
long value by key.
Retrieves a
long value by key, using a default value if not found.
Retrieves a
String by key, using a default value if not found.
- Parameters:
key
the keydefaultValue
default value to return if value is null- Returns:
- the
String
Retrieves a
String by key.
- Parameters:
key
the key- Returns:
- the
String
Retrieves a
CharSequence by key.
- Parameters:
key
the key- Returns:
- the
CharSequence
Retrieves a
String array by key. If the value was a
String[] it
will be returned directly. If it was a
String it will be converted to a
String array of length one. If it was an array of another type, a
String array will be made and each element will be converted to a
String.
- Parameters:
key
the key- Returns:
- the
String array of that key
Retrieves a
StringValue object by key.
- Parameters:
key
the key- Returns:
- the
StringValue object
Retrieves a
Time object by key.
Returns whether or not this
IValueMap is immutable.
- Returns:
- whether or not this
IValueMap is immutable
Makes this
IValueMap immutable by changing the underlying map representation
to a
Collections.unmodifiableMap. After calling this method, any attempt to
modify this
IValueMap will result in a
RuntimeException being
thrown by the
Collections framework.
Provided that the hash key is a
String and you need to access the value
ignoring the key's case (upper- or lowercase letters), then you may use this method to get
the correct writing.
- Parameters:
key
the key- Returns:
- the key with the correct writing