public class Link
extends java.lang.Object
| Constructor and Description |
|---|
Link(java.lang.String rel,
java.lang.String href)
Creates a new
Link with the given rel and href. |
Link(java.lang.String rel,
java.lang.String href,
java.lang.String title)
Creates a new
Link with the given rel, href, and
title. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHref()
Returns the link's
href. |
java.lang.String |
getRel()
Returns the link's
rel. |
java.lang.String |
getTitle()
Returns the link's
title, or null if it does not have a title. |
int |
hashCode() |
java.lang.String |
toString() |
public Link(java.lang.String rel,
java.lang.String href)
Link with the given rel and href.rel - The link's relhref - The link's hrefpublic Link(java.lang.String rel,
java.lang.String href,
java.lang.String title)
Link with the given rel, href, and
title.rel - The link's relhref - The link's hreftitle - The link's titlepublic java.lang.String getRel()
rel.relpublic java.lang.String getHref()
href.hrefpublic java.lang.String getTitle()
title, or null if it does not have a title.title or nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object