|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.ResourceSupport
org.springframework.hateoas.Resource<T>
public class Resource<T>
A simple Resource wrapping a domain object and adding links to it.
| Constructor Summary | |
|---|---|
protected |
Resource()
Creates an empty Resource. |
|
Resource(T content,
Iterable<Link> links)
Creates a new Resource with the given content and Links. |
|
Resource(T content,
Link... links)
Creates a new Resource with the given content and Links (optional). |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
T |
getContent()
Returns the underlying entity. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.springframework.hateoas.ResourceSupport |
|---|
add, add, getId, getLink, getLinks, hasLink, hasLinks |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Resource()
Resource.
public Resource(T content,
Link... links)
Resource with the given content and Links (optional).
content - must not be null.links - the links to add to the Resource.
public Resource(T content,
Iterable<Link> links)
Resource with the given content and Links.
content - must not be null.links - the links to add to the Resource.| Method Detail |
|---|
public T getContent()
public String toString()
toString in class ResourceSupportpublic boolean equals(Object obj)
equals in class ResourceSupportpublic int hashCode()
hashCode in class ResourceSupport
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||