Class Link
- java.lang.Object
-
- com.google.appengine.api.datastore.Link
-
- All Implemented Interfaces:
Serializable
,Comparable<Link>
public final class Link extends Object implements Serializable, Comparable<Link>
ALink
is a URL of limited length.In addition to adding the meaning of
URL
onto a String, aLink
can also be longer than a Text value, with a limit of 2083 characters.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Link l)
boolean
equals(@Nullable Object object)
TwoLink
objects are considered equal if their content strings match exactly.String
getValue()
Returns the value of thisLink
.int
hashCode()
String
toString()
Returns the entire text of thisLink
.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Link
public Link(String value)
Constructs a newLink
object with the specified value. This object cannot be modified after construction.
-
-
Method Detail
-
getValue
public String getValue()
Returns the value of thisLink
.
-
equals
public boolean equals(@Nullable Object object)
TwoLink
objects are considered equal if their content strings match exactly.
-
toString
public String toString()
Returns the entire text of thisLink
.
-
compareTo
public int compareTo(Link l)
- Specified by:
compareTo
in interfaceComparable<Link>
-
-