|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.uritemplate.vars.VariableMap
@Immutable public final class VariableMap
Container class for variables name/value pairs
You must use a builder for building an instance of this class, using the
newBuilder()
method.
Note that this class uses the freeze/thaw pattern. You can therefore "thaw" an instance of this class in order to obtain a builder again.
VariableMapBuilder
,
URITemplate.toString(VariableMap)
,
URITemplate.toURI(VariableMap)
,
URITemplate.toURL(VariableMap)
Method Summary | |
---|---|
VariableValue |
get(String varname)
Get the value associated with a variable name |
static VariableMapBuilder |
newBuilder()
Create a new builder for this class |
VariableMapBuilder |
thaw()
Return a thawed version of this instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static VariableMapBuilder newBuilder()
VariableMapBuilder
public VariableValue get(String varname)
varname
- the variable name
null
if there is no matching valuepublic VariableMapBuilder thaw()
thaw
in interface com.github.fge.Frozen<VariableMapBuilder>
VariableMapBuilder
filled with name/value pairs of this
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |