Package org.refcodes.structure
Interface PropertiesAccessorMixin.PropertiesMutatorMixin
-
- All Superinterfaces:
Clearable
,Keys<java.lang.String,java.lang.String>
,Keys.MutableKeys<java.lang.String,java.lang.String>
,Keys.MutableValues<java.lang.String,java.lang.String>
- All Known Subinterfaces:
CanonicalMap.CanonicalMapBuilder
,CanonicalMap.MutableCanonicalMap
,PropertiesAccessorMixin.PropertiesBuilderMixin<T>
,PropertiesAccessorMixin.PropertiesMixin
- All Known Implementing Classes:
CanonicalMapBuilderImpl
- Enclosing interface:
- PropertiesAccessorMixin
public static interface PropertiesAccessorMixin.PropertiesMutatorMixin extends Keys.MutableValues<java.lang.String,java.lang.String>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Keys
Keys.MutableKeys<K,V>, Keys.MutableValues<K,V>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String
put(java.lang.Object aKey, java.lang.String aValue)
Adds the given element related to the given key.default java.lang.String
put(Property aProperty)
Puts the key/value-pair from the providedProperty
.default java.lang.String
putBoolean(java.lang.Object aKey, java.lang.Boolean aValue)
Sets theBoolean
value for the property referred to by the key.default java.lang.String
putBoolean(java.lang.String aKey, java.lang.Boolean aValue)
Sets theBoolean
value for the property referred to by the key.default java.lang.String
putByte(java.lang.Object aKey, java.lang.Byte aValue)
Sets theByte
value for the property referred to by the key.default java.lang.String
putByte(java.lang.String aKey, java.lang.Byte aValue)
Sets theByte
value for the property referred to by the key.default java.lang.String
putDouble(java.lang.Object aKey, java.lang.Double aValue)
Sets theDouble
value for the property referred to by the key.default java.lang.String
putDouble(java.lang.String aKey, java.lang.Double aValue)
Sets theDouble
value for the property referred to by the key.default java.lang.String
putFloat(java.lang.Object aKey, java.lang.Float aValue)
Sets theFloat
value for the property referred to by the key.default java.lang.String
putFloat(java.lang.String aKey, java.lang.Float aValue)
Sets theFloat
value for the property referred to by the key.default java.lang.String
putInteger(java.lang.Object aKey, java.lang.Integer aValue)
Sets theInteger
value for the property referred to by the key.default java.lang.String
putInteger(java.lang.String aKey, java.lang.Integer aValue)
Sets theInteger
value for the property referred to by the key.default java.lang.String
putLong(java.lang.Object aKey, java.lang.Long aValue)
Sets theLong
value for the property referred to by the key.default java.lang.String
putLong(java.lang.String aKey, java.lang.Long aValue)
Sets theLong
value for the property referred to by the key.default java.lang.String
putShort(java.lang.Object aKey, java.lang.Short aValue)
Sets theShort
value for the property referred to by the key.default java.lang.String
putShort(java.lang.String aKey, java.lang.Short aValue)
Sets theShort
value for the property referred to by the key.-
Methods inherited from interface org.refcodes.structure.Keys
containsKey, containsValue, get, getOr, keySet, use, values
-
Methods inherited from interface org.refcodes.structure.Keys.MutableKeys
delete
-
Methods inherited from interface org.refcodes.structure.Keys.MutableValues
put
-
-
-
-
Method Detail
-
put
default java.lang.String put(java.lang.Object aKey, java.lang.String aValue)
Adds the given element related to the given key. As the key passed is an enumeration, theEnum.toString()
method is used on the enumeration to resolve the enumeration to a {link String} key.- Parameters:
aKey
- The key for which to add the element.aValue
- The value to be related with the given key.- Returns:
- The value being replaced by the provided value or null if none value has been replaced.
-
put
default java.lang.String put(Property aProperty)
Puts the key/value-pair from the providedProperty
.- Parameters:
aProperty
- The property's key/value to be inserted.- Returns:
- The property value overwritten by the provided property.
-
putBoolean
default java.lang.String putBoolean(java.lang.String aKey, java.lang.Boolean aValue)
Sets theBoolean
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheBoolean
representation for theString
value.- Returns:
- the string
-
putBoolean
default java.lang.String putBoolean(java.lang.Object aKey, java.lang.Boolean aValue)
Sets theBoolean
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheBoolean
representation for theString
value.- Returns:
- the string
-
putByte
default java.lang.String putByte(java.lang.String aKey, java.lang.Byte aValue)
Sets theByte
value for the property referred to by the key. As property keys and values are of typeString
, theByte
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheByte
representation for theString
value.- Returns:
- the string
-
putByte
default java.lang.String putByte(java.lang.Object aKey, java.lang.Byte aValue)
Sets theByte
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheByte
representation for theString
value.- Returns:
- the string
-
putDouble
default java.lang.String putDouble(java.lang.String aKey, java.lang.Double aValue)
Sets theDouble
value for the property referred to by the key. As property keys and values are of typeString
, theDouble
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheDouble
representation for theString
value.- Returns:
- the string
-
putDouble
default java.lang.String putDouble(java.lang.Object aKey, java.lang.Double aValue)
Sets theDouble
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheDouble
representation for theString
value.- Returns:
- the string
-
putFloat
default java.lang.String putFloat(java.lang.String aKey, java.lang.Float aValue)
Sets theFloat
value for the property referred to by the key. As property keys and values are of typeString
, theFloat
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheFloat
representation for theString
value.- Returns:
- the string
-
putFloat
default java.lang.String putFloat(java.lang.Object aKey, java.lang.Float aValue)
Sets theFloat
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheFloat
representation for theString
value.- Returns:
- the string
-
putInteger
default java.lang.String putInteger(java.lang.String aKey, java.lang.Integer aValue)
Sets theInteger
value for the property referred to by the key. As property keys and values are of typeString
, theInteger
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheInteger
representation for theString
value.- Returns:
- the string
-
putInteger
default java.lang.String putInteger(java.lang.Object aKey, java.lang.Integer aValue)
Sets theInteger
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheInteger
representation for theString
value.- Returns:
- the string
-
putLong
default java.lang.String putLong(java.lang.String aKey, java.lang.Long aValue)
Sets theLong
value for the property referred to by the key. As property keys and values are of typeString
, theLong
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheLong
representation for theString
value.- Returns:
- the string
-
putLong
default java.lang.String putLong(java.lang.Object aKey, java.lang.Long aValue)
Sets theLong
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheLong
representation for theString
value.- Returns:
- the string
-
putShort
default java.lang.String putShort(java.lang.String aKey, java.lang.Short aValue)
Sets theShort
value for the property referred to by the key. As property keys and values are of typeString
, theShort
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheShort
representation for theString
value.- Returns:
- the string
-
putShort
default java.lang.String putShort(java.lang.Object aKey, java.lang.Short aValue)
Sets theShort
value for the property referred to by the key. As property keys and values are of typeString
, theBoolean
value is converted accordingly.- Parameters:
aKey
- The key for which to retrieve the value.aValue
- TheShort
representation for theString
value.- Returns:
- the string
-
-