| Constructor and Description |
|---|
Links(Link... links)
|
Links(List<Link> links)
|
| Modifier and Type | Method and Description |
|---|---|
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)
|
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. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Links(Link... links)
links - 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)
rel - public static Links valueOf(String source)
Links instance from the given RFC5988-compatible link format.public boolean isEmpty()
Links containter is empty.Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.