com.google.appengine.api.datastore
Class Link
- java.lang.Object
-
- com.google.appengine.api.datastore.Link
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Link>
public final class Link extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Link>
ALinkis a URL of limited length.In addition to adding the meaning of
URLonto a String, aLinkcan also be longer than a Text value, with a limit of 2083 characters.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor and Description Link(java.lang.String value)Constructs a newLinkobject with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompareTo(Link l)booleanequals(java.lang.Object object)TwoLinkobjects are considered equal if their content strings match exactly.java.lang.StringgetValue()Returns the value of thisLink.inthashCode()java.lang.StringtoString()Returns the entire text of thisLink.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Link
public Link(java.lang.String value)
Constructs a newLinkobject with the specified value. This object cannot be modified after construction.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns the value of thisLink.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
TwoLinkobjects are considered equal if their content strings match exactly.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the entire text of thisLink.- Overrides:
toStringin classjava.lang.Object
-
-