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 container 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, wait
forEach, spliterator
public 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
container is empty.Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.