Spring Hateoas

org.springframework.hateoas
Class TemplateVariables

java.lang.Object
  extended by 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:
Serialized Form

Field Summary
static TemplateVariables NONE
           
 
Constructor Summary
TemplateVariables(List<TemplateVariable> variables)
          Creates a new TemplateVariables for the given TemplateVariables.
TemplateVariables(TemplateVariable... variables)
          Creates a new TemplateVariables for the given TemplateVariables.
 
Method Summary
 List<TemplateVariable> asList()
          Returns the contained TemplateVariables as List.
 TemplateVariables concat(Collection<TemplateVariable> variables)
          Concatenates the given TemplateVariables to the current one.
 TemplateVariables concat(TemplateVariable... variables)
          Concatenates the given TemplateVariables to the current one.
 TemplateVariables concat(TemplateVariables variables)
          Concatenates the given TemplateVariables to the current one.
 boolean equals(Object obj)
           
 int hashCode()
           
 Iterator<TemplateVariable> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static TemplateVariables NONE
Constructor Detail

TemplateVariables

public TemplateVariables(TemplateVariable... variables)
Creates a new TemplateVariables for the given TemplateVariables.

Parameters:
variables - must not be null.

TemplateVariables

public TemplateVariables(List<TemplateVariable> variables)
Creates a new TemplateVariables for the given TemplateVariables.

Parameters:
variables - must not be null.
Method Detail

concat

public TemplateVariables concat(TemplateVariable... variables)
Concatenates the given TemplateVariables to the current one.

Parameters:
variables - must not be null.
Returns:

concat

public TemplateVariables concat(Collection<TemplateVariable> variables)
Concatenates the given TemplateVariables to the current one.

Parameters:
variables - must not be null.
Returns:

concat

public TemplateVariables concat(TemplateVariables variables)
Concatenates the given TemplateVariables to the current one.

Parameters:
variables - must not be null.
Returns:

asList

public List<TemplateVariable> asList()
Returns the contained TemplateVariables as List.

Returns:

iterator

public Iterator<TemplateVariable> iterator()
Specified by:
iterator in interface Iterable<TemplateVariable>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Spring Hateoas

Copyright © 2012-2014–2014 Pivotal, Inc.. All rights reserved.