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.Stringput(java.lang.Object aKey, java.lang.String aValue)Adds the given element related to the given key.default java.lang.Stringput(Property aProperty)Puts the key/value-pair from the providedProperty.default java.lang.StringputBoolean(java.lang.Object aKey, java.lang.Boolean aValue)Sets theBooleanvalue for the property referred to by the key.default java.lang.StringputBoolean(java.lang.String aKey, java.lang.Boolean aValue)Sets theBooleanvalue for the property referred to by the key.default java.lang.StringputByte(java.lang.Object aKey, java.lang.Byte aValue)Sets theBytevalue for the property referred to by the key.default java.lang.StringputByte(java.lang.String aKey, java.lang.Byte aValue)Sets theBytevalue for the property referred to by the key.default java.lang.StringputDouble(java.lang.Object aKey, java.lang.Double aValue)Sets theDoublevalue for the property referred to by the key.default java.lang.StringputDouble(java.lang.String aKey, java.lang.Double aValue)Sets theDoublevalue for the property referred to by the key.default java.lang.StringputFloat(java.lang.Object aKey, java.lang.Float aValue)Sets theFloatvalue for the property referred to by the key.default java.lang.StringputFloat(java.lang.String aKey, java.lang.Float aValue)Sets theFloatvalue for the property referred to by the key.default java.lang.StringputInteger(java.lang.Object aKey, java.lang.Integer aValue)Sets theIntegervalue for the property referred to by the key.default java.lang.StringputInteger(java.lang.String aKey, java.lang.Integer aValue)Sets theIntegervalue for the property referred to by the key.default java.lang.StringputLong(java.lang.Object aKey, java.lang.Long aValue)Sets theLongvalue for the property referred to by the key.default java.lang.StringputLong(java.lang.String aKey, java.lang.Long aValue)Sets theLongvalue for the property referred to by the key.default java.lang.StringputShort(java.lang.Object aKey, java.lang.Short aValue)Sets theShortvalue for the property referred to by the key.default java.lang.StringputShort(java.lang.String aKey, java.lang.Short aValue)Sets theShortvalue 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 theBooleanvalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheBooleanrepresentation for theStringvalue.- Returns:
- the string
-
putBoolean
default java.lang.String putBoolean(java.lang.Object aKey, java.lang.Boolean aValue)Sets theBooleanvalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheBooleanrepresentation for theStringvalue.- Returns:
- the string
-
putByte
default java.lang.String putByte(java.lang.String aKey, java.lang.Byte aValue)Sets theBytevalue for the property referred to by the key. As property keys and values are of typeString, theBytevalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheByterepresentation for theStringvalue.- Returns:
- the string
-
putByte
default java.lang.String putByte(java.lang.Object aKey, java.lang.Byte aValue)Sets theBytevalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheByterepresentation for theStringvalue.- Returns:
- the string
-
putDouble
default java.lang.String putDouble(java.lang.String aKey, java.lang.Double aValue)Sets theDoublevalue for the property referred to by the key. As property keys and values are of typeString, theDoublevalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheDoublerepresentation for theStringvalue.- Returns:
- the string
-
putDouble
default java.lang.String putDouble(java.lang.Object aKey, java.lang.Double aValue)Sets theDoublevalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheDoublerepresentation for theStringvalue.- Returns:
- the string
-
putFloat
default java.lang.String putFloat(java.lang.String aKey, java.lang.Float aValue)Sets theFloatvalue for the property referred to by the key. As property keys and values are of typeString, theFloatvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheFloatrepresentation for theStringvalue.- Returns:
- the string
-
putFloat
default java.lang.String putFloat(java.lang.Object aKey, java.lang.Float aValue)Sets theFloatvalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheFloatrepresentation for theStringvalue.- Returns:
- the string
-
putInteger
default java.lang.String putInteger(java.lang.String aKey, java.lang.Integer aValue)Sets theIntegervalue for the property referred to by the key. As property keys and values are of typeString, theIntegervalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheIntegerrepresentation for theStringvalue.- Returns:
- the string
-
putInteger
default java.lang.String putInteger(java.lang.Object aKey, java.lang.Integer aValue)Sets theIntegervalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheIntegerrepresentation for theStringvalue.- Returns:
- the string
-
putLong
default java.lang.String putLong(java.lang.String aKey, java.lang.Long aValue)Sets theLongvalue for the property referred to by the key. As property keys and values are of typeString, theLongvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheLongrepresentation for theStringvalue.- Returns:
- the string
-
putLong
default java.lang.String putLong(java.lang.Object aKey, java.lang.Long aValue)Sets theLongvalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheLongrepresentation for theStringvalue.- Returns:
- the string
-
putShort
default java.lang.String putShort(java.lang.String aKey, java.lang.Short aValue)Sets theShortvalue for the property referred to by the key. As property keys and values are of typeString, theShortvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheShortrepresentation for theStringvalue.- Returns:
- the string
-
putShort
default java.lang.String putShort(java.lang.Object aKey, java.lang.Short aValue)Sets theShortvalue for the property referred to by the key. As property keys and values are of typeString, theBooleanvalue is converted accordingly.- Parameters:
aKey- The key for which to retrieve the value.aValue- TheShortrepresentation for theStringvalue.- Returns:
- the string
-
-