public class Resources<T> extends ResourceSupport implements Iterable<T>
| Modifier | Constructor and Description |
|---|---|
protected |
Resources()
Creates an empty
Resources instance. |
|
Resources(Iterable<T> content,
Iterable<Link> links)
|
|
Resources(Iterable<T> content,
Link... links)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection<T> |
getContent()
Returns the underlying elements.
|
int |
hashCode() |
Iterator<T> |
iterator() |
String |
toString() |
static <T extends Resource<S>,S> |
wrap(Iterable<S> content)
|
add, add, add, getId, getLink, getLinks, hasLink, hasLinks, removeLinksclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected Resources()
Resources instance.public Resources(Iterable<T> content, Link... links)
content - must not be null.links - the links to be added to the Resources.public static <T extends Resource<S>,S> Resources<T> wrap(Iterable<S> content)
content - must not be null.public Collection<T> getContent()
public String toString()
toString in class ResourceSupportpublic boolean equals(Object obj)
equals in class ResourceSupportpublic int hashCode()
hashCode in class ResourceSupportCopyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.