public class Resource<T> extends ResourceSupport
Resource wrapping a domain object and adding links to it.| Constructor and Description |
|---|
Resource(T content,
Iterable<Link> links)
|
Resource(T content,
Link... links)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getContent()
Returns the underlying entity.
|
int |
hashCode() |
String |
toString() |
public Resource(T content, Link... links)
content - must not be null.links - the links to add to the Resource.public T getContent()
public String toString()
toString in class ResourceSupportpublic boolean equals(Object obj)
equals in class ResourceSupportpublic int hashCode()
hashCode in class ResourceSupportCopyright © 2012-2016–2017 Pivotal, Inc.. All rights reserved.