|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.uritemplate.vars.values.VariableValue com.github.fge.uritemplate.vars.values.ScalarValue
@Immutable public final class ScalarValue
Simple string variable value
Note that the constructor takes an arbitrary type as an argument. It is
the caller's responsibility to ensure that this value has a correct .toString()
implementation.
Field Summary |
---|
Fields inherited from class com.github.fge.uritemplate.vars.values.VariableValue |
---|
BUNDLE |
Constructor Summary | |
---|---|
ScalarValue(Object value)
Constructor |
Method Summary | |
---|---|
String |
getScalarValue()
Get a simple string for this value |
boolean |
isEmpty()
Tell whether this value is empty |
Methods inherited from class com.github.fge.uritemplate.vars.values.VariableValue |
---|
getListValue, getMapValue, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScalarValue(Object value)
value
- the value
NullPointerException
- value is nullMethod Detail |
---|
public String getScalarValue()
VariableValue
Only valid for string values
getScalarValue
in class VariableValue
public boolean isEmpty()
VariableValue
For strings, this tells whether the string itself is empty. For lists and maps, this tells whether the list or map have no elements/entries.
isEmpty
in class VariableValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |