|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.Links
public class Links
Value object to represent a list of Links.
| Constructor Summary | |
|---|---|
Links(Link... links)
Creates a new Links instance from the given Links. |
|
Links(List<Link> links)
Creates a new Links instance from the given Links. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object arg0)
|
Link |
getLink(String rel)
Returns the Link with the given rel. |
List<Link> |
getLinks(String rel)
Returns all Links with the given relation type. |
int |
hashCode()
|
boolean |
hasLink(String rel)
Returns whether the Links container contains a Link with the given rel. |
boolean |
isEmpty()
Returns whether the Links containter is empty. |
Iterator<Link> |
iterator()
|
String |
toString()
|
static Links |
valueOf(String source)
Creates a Links instance from the given RFC5988-compatible link format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Links(List<Link> links)
Links instance from the given Links.
links - public Links(Link... links)
Links instance from the given Links.
links - | Method Detail |
|---|
public Link getLink(String rel)
Link with the given rel.
rel - the relation type to lookup a link for.
Link with the given rel or null if none found.public List<Link> getLinks(String rel)
Links with the given relation type.
public boolean hasLink(String rel)
Links container contains a Link with the given rel.
rel -
public static Links valueOf(String source)
Links instance from the given RFC5988-compatible link format.
source - a comma separated list of Link representations.
Links represented by the given String.public boolean isEmpty()
Links containter is empty.
public String toString()
toString in class Objectpublic Iterator<Link> iterator()
iterator in interface Iterable<Link>public boolean equals(Object arg0)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||