Package com.exedio.cope.util
Class Properties.Field<E>
- java.lang.Object
-
- com.exedio.cope.util.Properties.Field<E>
-
- Enclosing class:
- Properties
public final class Properties.Field<E> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
get()
E
getDefaultValue()
Do no applyObject.toString()
to the result, but usegetDefaultValueString()
instead.String
getDefaultValueFailure()
String
getDefaultValueString()
ReturnsgetString
(getDefaultValue()
).String
getKey()
E
getMinimum()
Do no applyObject.toString()
to the result, but usegetMinimumString()
instead.String
getMinimumString()
ReturnsgetString
(getMinimum()
).String
getString(Object someValue)
Returns a string that would be parsed to the samevalue
someValue
by this field.E
getValue()
Never returns null.String
getValueString()
ReturnsgetString
(getValue()
).boolean
hasHiddenValue()
boolean
isSpecified()
String
toString()
-
-
-
Method Detail
-
getMinimum
public E getMinimum()
Do no applyObject.toString()
to the result, but usegetMinimumString()
instead.
-
getMinimumString
public String getMinimumString()
ReturnsgetString
(getMinimum()
).
-
getDefaultValue
public E getDefaultValue()
Do no applyObject.toString()
to the result, but usegetDefaultValueString()
instead.
-
getDefaultValueString
public String getDefaultValueString()
ReturnsgetString
(getDefaultValue()
).
-
getDefaultValueFailure
public String getDefaultValueFailure()
-
hasHiddenValue
public boolean hasHiddenValue()
-
isSpecified
public boolean isSpecified()
-
getValue
@Nonnull public E getValue()
Never returns null.Do no apply
Object.toString()
to the result, but usegetValueString()
instead.
-
getValueString
@Nonnull public String getValueString()
ReturnsgetString
(getValue()
).
-
getString
public String getString(Object someValue)
Returns a string that would be parsed to the samevalue
someValue
by this field. Returnsnull
, ifsomeValue
isnull
.- Throws:
ClassCastException
- ifsomeValue
does not match class ofvalue
-
-