public abstract class AbstractValueMap extends AbstractMap<String,Object> implements org.apache.wicket.util.value.IValueMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AbstractValueMap() |
Modifier and Type | Method and Description |
---|---|
Object |
add(String key,
String value)
Adds the value to this
ValueMap with the given key. |
void |
clear() |
Boolean |
getAsBoolean(String key) |
boolean |
getAsBoolean(String key,
boolean defaultValue) |
Double |
getAsDouble(String key) |
double |
getAsDouble(String key,
double defaultValue) |
org.apache.wicket.util.time.Duration |
getAsDuration(String key) |
org.apache.wicket.util.time.Duration |
getAsDuration(String key,
org.apache.wicket.util.time.Duration defaultValue) |
<T extends Enum<T>> |
getAsEnum(String key,
Class<T> eClass) |
<T extends Enum<T>> |
getAsEnum(String key,
Class<T> eClass,
T defaultValue) |
<T extends Enum<T>> |
getAsEnum(String key,
T defaultValue) |
Integer |
getAsInteger(String key) |
int |
getAsInteger(String key,
int defaultValue) |
Long |
getAsLong(String key) |
long |
getAsLong(String key,
long defaultValue) |
org.apache.wicket.util.time.Time |
getAsTime(String key) |
org.apache.wicket.util.time.Time |
getAsTime(String key,
org.apache.wicket.util.time.Time defaultValue) |
boolean |
getBoolean(String key) |
CharSequence |
getCharSequence(String key) |
double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
org.apache.wicket.util.time.Duration |
getDuration(String key) |
int |
getInt(String key) |
int |
getInt(String key,
int defaultValue) |
String |
getKey(String key) |
long |
getLong(String key) |
long |
getLong(String key,
long defaultValue) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
String[] |
getStringArray(String key) |
org.apache.wicket.util.string.StringValue |
getStringValue(String key) |
org.apache.wicket.util.time.Time |
getTime(String key) |
boolean |
isImmutable() |
org.apache.wicket.util.value.IValueMap |
makeImmutable() |
void |
putAll(Map<? extends String,? extends Object> map) |
Object |
remove(Object key) |
String |
toString()
Generates a
String representation of this object. |
clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, replace, replace, replaceAll, size, values
public boolean isImmutable()
isImmutable
in interface org.apache.wicket.util.value.IValueMap
public org.apache.wicket.util.value.IValueMap makeImmutable()
makeImmutable
in interface org.apache.wicket.util.value.IValueMap
public void clear()
public boolean getBoolean(String key) throws org.apache.wicket.util.string.StringValueConversionException
getBoolean
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getBoolean(String)
public double getDouble(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String)
public double getDouble(String key, double defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getDouble
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDouble(String, double)
public org.apache.wicket.util.time.Duration getDuration(String key) throws org.apache.wicket.util.string.StringValueConversionException
getDuration
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getDuration(String)
public int getInt(String key) throws org.apache.wicket.util.string.StringValueConversionException
getInt
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getInt(String)
public int getInt(String key, int defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getInt
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getInt(String, int)
public long getLong(String key) throws org.apache.wicket.util.string.StringValueConversionException
getLong
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getLong(String)
public long getLong(String key, long defaultValue) throws org.apache.wicket.util.string.StringValueConversionException
getLong
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getLong(String, long)
public String getString(String key, String defaultValue)
getString
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getString(String, String)
public String getString(String key)
getString
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getString(String)
public CharSequence getCharSequence(String key)
getCharSequence
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getCharSequence(String)
public String[] getStringArray(String key)
getStringArray
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getStringArray(String)
public org.apache.wicket.util.string.StringValue getStringValue(String key)
getStringValue
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getStringValue(String)
public org.apache.wicket.util.time.Time getTime(String key) throws org.apache.wicket.util.string.StringValueConversionException
getTime
in interface org.apache.wicket.util.value.IValueMap
org.apache.wicket.util.string.StringValueConversionException
IValueMap.getTime(String)
public Object add(String key, String value)
ValueMap
with the given key. If the key already is in
the ValueMap
it will combine the values into a String
array,
else it will just store the value itself.key
- the key to store the value undervalue
- the value that must be added/merged to the ValueMap
String
array
with the combined valuespublic void putAll(Map<? extends String,? extends Object> map)
putAll
in interface Map<String,Object>
putAll
in class AbstractMap<String,Object>
Map.putAll(java.util.Map)
public Object remove(Object key)
remove
in interface Map<String,Object>
remove
in class AbstractMap<String,Object>
Map.remove(java.lang.Object)
public String getKey(String key)
getKey
in interface org.apache.wicket.util.value.IValueMap
public String toString()
String
representation of this object.toString
in class AbstractMap<String,Object>
String
representation of this ValueMap
consistent with
the tag-attribute style of markup elements. For example:
a="x" b="y" c="z"
.public Boolean getAsBoolean(String key)
getAsBoolean
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsBoolean(String)
public boolean getAsBoolean(String key, boolean defaultValue)
getAsBoolean
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsBoolean(String, boolean)
public Integer getAsInteger(String key)
getAsInteger
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsInteger(String)
public int getAsInteger(String key, int defaultValue)
getAsInteger
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsInteger(String, int)
public Long getAsLong(String key)
getAsLong
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsLong(String)
public long getAsLong(String key, long defaultValue)
getAsLong
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsLong(String, long)
public Double getAsDouble(String key)
getAsDouble
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsDouble(String)
public double getAsDouble(String key, double defaultValue)
getAsDouble
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsDouble(String, double)
public org.apache.wicket.util.time.Duration getAsDuration(String key)
getAsDuration
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsDuration(String)
public org.apache.wicket.util.time.Duration getAsDuration(String key, org.apache.wicket.util.time.Duration defaultValue)
getAsDuration
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsDuration(String, Duration)
public org.apache.wicket.util.time.Time getAsTime(String key)
getAsTime
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsTime(String)
public org.apache.wicket.util.time.Time getAsTime(String key, org.apache.wicket.util.time.Time defaultValue)
getAsTime
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsTime(String, Time)
public <T extends Enum<T>> T getAsEnum(String key, Class<T> eClass)
getAsEnum
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsEnum(java.lang.String, java.lang.Class)
public <T extends Enum<T>> T getAsEnum(String key, T defaultValue)
getAsEnum
in interface org.apache.wicket.util.value.IValueMap
IValueMap.getAsEnum(java.lang.String, java.lang.Enum)
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.