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