Class EnumConfigurationValue<P>
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.store.dto.EnumConfigurationValue<P>
-
- All Implemented Interfaces:
IEnumConfigurationValue<P>
public class EnumConfigurationValue<P> extends java.lang.Object implements IEnumConfigurationValue<P>
Implements theIEnumConfigurationValue
.
-
-
Constructor Summary
Constructors Constructor Description EnumConfigurationValue(java.lang.String configurationValue, java.util.Collection<P> valueList)
Constructor for EnumConfigurationValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D> D
getValue()
Get the value.<D> java.util.Collection<D>
getValueList()
Get the converted value as listvoid
newIterator()
Initialise iterator backjava.lang.String
toString()
Get the string representation
-
-
-
Constructor Detail
-
EnumConfigurationValue
public EnumConfigurationValue(java.lang.String configurationValue, java.util.Collection<P> valueList)
Constructor for EnumConfigurationValue- Parameters:
configurationValue
- the configuration valuevalueList
- the value list
-
-
Method Detail
-
getValue
public <D> D getValue()
Description copied from interface:IEnumConfigurationValue
Get the value. In case of a list it will be the first element.- Specified by:
getValue
in interfaceIEnumConfigurationValue<P>
- Type Parameters:
D
- the generic value type- Returns:
- the value. In case of a list it will be the first element.
- See Also:
IEnumConfigurationValue.getValue()
-
getValueList
public <D> java.util.Collection<D> getValueList()
Description copied from interface:IEnumConfigurationValue
Get the converted value as list- Specified by:
getValueList
in interfaceIEnumConfigurationValue<P>
- Type Parameters:
D
- the generic value type- Returns:
- the value list
- See Also:
IEnumConfigurationValue.getValueList()
-
toString
public java.lang.String toString()
Description copied from interface:IEnumConfigurationValue
Get the string representation- Specified by:
toString
in interfaceIEnumConfigurationValue<P>
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string representation
- See Also:
Object.toString()
-
newIterator
public void newIterator()
Initialise iterator back
-
-