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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTemplateVariables(List<TemplateVariable> variables) Creates a newTemplateVariablesfor the givenTemplateVariables.TemplateVariables(TemplateVariable... variables) Creates a newTemplateVariablesfor the givenTemplateVariables. -
Method Summary
Modifier and TypeMethodDescriptionasList()Returns the containedTemplateVariables asList.concat(Collection<TemplateVariable> variables) Concatenates the givenTemplateVariables to the current one.concat(TemplateVariable... variables) Concatenates the givenTemplateVariables to the current one.concat(TemplateVariables variables) Concatenates the givenTemplateVariablesto the current one.booleaninthashCode()iterator()stream()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
-
Constructor Details
-
TemplateVariables
Creates a newTemplateVariablesfor the givenTemplateVariables.- Parameters:
variables- must not be null.
-
TemplateVariables
Creates a newTemplateVariablesfor the givenTemplateVariables.- Parameters:
variables- must not be null.
-
-
Method Details
-
concat
Concatenates the givenTemplateVariables 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:
-
concat
Concatenates the givenTemplateVariablesto the current one.- Parameters:
variables- must not be null.- Returns:
-
asList
Returns the containedTemplateVariables asList.- Returns:
-
stream
-
iterator
- Specified by:
iteratorin interfaceIterable<TemplateVariable>
-
toString
-
equals
-
hashCode
public int hashCode()
-