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
TypeDescription
long

Constructors

public Link(String value)

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

Parameter
NameDescription
valueString

Methods

public int compareTo(Link l)
Parameter
NameDescription
lLink
Returns
TypeDescription
int
public boolean equals(@Nullable Object object)

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

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

Returns the value of this Link.

Returns
TypeDescription
String
public int hashCode()
Returns
TypeDescription
int
Overrides
public String toString()

Returns the entire text of this Link.

Returns
TypeDescription
String
Overrides