Package org.springframework.hateoas
Class TemplateVariables
java.lang.Object
org.springframework.hateoas.TemplateVariables
- All Implemented Interfaces:
Serializable
,Iterable<TemplateVariable>
public final class TemplateVariables
extends Object
implements Iterable<TemplateVariable>, Serializable
Wrapper type for a collection of
TemplateVariable
.- Author:
- Oliver Gierke
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTemplateVariables
(List<TemplateVariable> variables) Creates a newTemplateVariables
for the givenTemplateVariable
s.TemplateVariables
(TemplateVariable... variables) Creates a newTemplateVariables
for the givenTemplateVariable
s. -
Method Summary
Modifier and TypeMethodDescriptionasList()
Returns the containedTemplateVariable
s asList
.concat
(Collection<TemplateVariable> variables) Concatenates the givenTemplateVariable
s to the current one.concat
(TemplateVariable... variables) Concatenates the givenTemplateVariable
s to the current one.concat
(TemplateVariables variables) Concatenates the givenTemplateVariables
to the current one.boolean
int
hashCode()
iterator()
stream()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
-
Constructor Details
-
TemplateVariables
Creates a newTemplateVariables
for the givenTemplateVariable
s.- Parameters:
variables
- must not be null.
-
TemplateVariables
Creates a newTemplateVariables
for the givenTemplateVariable
s.- Parameters:
variables
- must not be null.
-
-
Method Details
-
concat
Concatenates the givenTemplateVariable
s to the current one.- Parameters:
variables
- must not be null.- Returns:
-
concat
Concatenates the givenTemplateVariable
s to the current one.- Parameters:
variables
- must not be null.- Returns:
-
concat
Concatenates the givenTemplateVariables
to the current one.- Parameters:
variables
- must not be null.- Returns:
-
asList
Returns the containedTemplateVariable
s asList
.- Returns:
-
stream
-
iterator
- Specified by:
iterator
in interfaceIterable<TemplateVariable>
-
toString
-
equals
-
hashCode
public int hashCode()
-