public final class Link
extends java.lang.Object
| Constructor and Description |
|---|
Link(java.net.URI href,
java.lang.String title)
Creates a new link to a resource.
|
public Link(java.net.URI href,
java.lang.String title)
href - the URI of the linked json-home document.title - the title of the link.public java.lang.String getTitle()
public java.net.URI getHref()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object