public final class RestLink extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestLink.LinkType
The link relationship type.
|
Modifier and Type | Field and Description |
---|---|
static Map<RestLink.LinkType,RestLink> |
NO_LINKS
An empty array of links.
|
Constructor and Description |
---|
RestLink()
Constructor for use only when deserializing.
|
RestLink(RestLink.LinkType rel,
URI href) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
URI |
getHref() |
RestLink.LinkType |
getRel() |
int |
hashCode() |
void |
setHref(URI newHref) |
void |
setRel(RestLink.LinkType newRel) |
String |
toString() |
public static final Map<RestLink.LinkType,RestLink> NO_LINKS
public RestLink()
public RestLink(RestLink.LinkType rel, URI href)
rel
- the link type (cannot be null
)href
- the link HREF (cannot be null
)public URI getHref()
null
)public RestLink.LinkType getRel()
null
)public void setHref(URI newHref)
newHref
- the new HREF (can be null
)public void setRel(RestLink.LinkType newRel)
newRel
- the new link type (can be null
)public String toString()
toString
in class Object
Object.toString()
Copyright © 2013–2019. All rights reserved.