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, getLinks, hasLink, hasLinks, removeLinks
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected 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 ResourceSupport
public boolean equals(Object obj)
equals
in class ResourceSupport
public int hashCode()
hashCode
in class ResourceSupport
Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.