Class Link (2.0.0)

public final class Link implements Serializable, Comparable<Link>

A Link is a URL of limited length.

In addition to adding the meaning of URL onto a String, a Link can also be longer than a Text value, with a limit of 2083 characters.

Inheritance

java.lang.Object > Link

Static Fields

public static final long serialVersionUID
Field Value
Type Description
long

Constructors

public Link(String value)

Constructs a new Link object with the specified value. This object cannot be modified after construction.

Parameter
Name Description
value String

Methods

public int compareTo(Link l)
Parameter
Name Description
l Link
Returns
Type Description
int
public boolean equals(@Nullable Object object)

Two Link objects are considered equal if their content strings match exactly.

Parameter
Name Description
object @org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
Type Description
boolean
Overrides
public String getValue()

Returns the value of this Link.

Returns
Type Description
String
public int hashCode()
Returns
Type Description
int
Overrides
public String toString()

Returns the entire text of this Link.

Returns
Type Description
String
Overrides