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 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.