- All Known Implementing Classes:
ConcreteValues
public interface Values
Simple container for primitive and object values used to define a provided instantiator.
-
Method Summary
Modifier and TypeMethodDescription<T> TReturns the value stored under the given field name, cast to the desired type.booleangetBoolean(String fieldName) Returns thebooleanvalue stored under the given field name.byteReturns thebytevalue stored under the given field name.charReturns thecharvalue stored under the given field name.doubleReturns thedoublevalue stored under the given field name.floatReturns thefloatvalue stored under the given field name.intReturns theintvalue stored under the given field name.longReturns thelongvalue stored under the given field name.shortReturns theshortvalue stored under the given field name.Returns theStringvalue stored under the given field name.
-
Method Details
-
getBoolean
Returns thebooleanvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
booleanvalue
-
getByte
Returns thebytevalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
bytevalue
-
getChar
Returns thecharvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
charvalue
-
getDouble
Returns thedoublevalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
doublevalue
-
getFloat
Returns thefloatvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
floatvalue
-
getInt
Returns theintvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
intvalue
-
getLong
Returns thelongvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
longvalue
-
getShort
Returns theshortvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
shortvalue
-
getString
Returns theStringvalue stored under the given field name.- Parameters:
fieldName- the name of the field- Returns:
- the stored
Stringvalue
-
get
Returns the value stored under the given field name, cast to the desired type.- Type Parameters:
T- the type to cast to- Parameters:
fieldName- the name of the field- Returns:
- the stored value cast to the requested type
-