Interface PrimitivesSupport
-
- All Known Subinterfaces:
Node,Preferences
public interface PrimitivesSupport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.BooleangetBoolean(java.lang.String key)Returns the Boolean to which the specified key is mapped, ornullif this map contains no mapping for the key.java.lang.BytegetByte(java.lang.String key)Returns the Byte to which the specified key is mapped, ornullif this map contains no mapping for the key.java.lang.IntegergetInteger(java.lang.String key)Returns the Integer to which the specified key is mapped, ornullif this map contains no mapping for the key.java.lang.LonggetLong(java.lang.String key)Returns the Long to which the specified key is mapped, ornullif this map contains no mapping for the key.java.lang.ShortgetShort(java.lang.String key)Returns the Short to which the specified key is mapped, ornullif this map contains no mapping for the key.java.lang.StringgetString(java.lang.String key)Returns the String to which the specified key is mapped, ornullif this map contains no mapping for the key.voidsetBoolean(java.lang.String key, java.lang.Boolean value)Associates the specified Boolean with the specified key in this map (optional operation).voidsetByte(java.lang.String key, byte value)Associates the specified Byte with the specified key in this map (optional operation).voidsetInteger(java.lang.String key, int value)Associates the specified Integer with the specified key in this map (optional operation).voidsetLong(java.lang.String key, long value)Associates the specified Long with the specified key in this map (optional operation).voidsetShort(java.lang.String key, short value)Associates the specified Short with the specified key in this map (optional operation).voidsetString(java.lang.String key, java.lang.String value)Associates the specified String with the specified key in this map (optional operation).
-
-
-
Method Detail
-
getBoolean
java.lang.Boolean getBoolean(java.lang.String key)
Returns the Boolean to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setBoolean
void setBoolean(java.lang.String key, java.lang.Boolean value)Associates the specified Boolean with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
getByte
java.lang.Byte getByte(java.lang.String key)
Returns the Byte to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setByte
void setByte(java.lang.String key, byte value)Associates the specified Byte with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
getShort
java.lang.Short getShort(java.lang.String key)
Returns the Short to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setShort
void setShort(java.lang.String key, short value)Associates the specified Short with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
getInteger
java.lang.Integer getInteger(java.lang.String key)
Returns the Integer to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setInteger
void setInteger(java.lang.String key, int value)Associates the specified Integer with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
getLong
java.lang.Long getLong(java.lang.String key)
Returns the Long to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setLong
void setLong(java.lang.String key, long value)Associates the specified Long with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
getString
java.lang.String getString(java.lang.String key)
Returns the String to which the specified key is mapped, ornullif this map contains no mapping for the key.- Parameters:
key- the key whose associated value is to be returned- Returns:
- the value to which the specified key is mapped, or
nullif this map contains no mapping for the key
-
setString
void setString(java.lang.String key, java.lang.String value)Associates the specified String with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key. If this value isnullthen any value with the specified name will be removed.
-
-