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>
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.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Link(String value)
    Constructs a new Link object with the specified value.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
    equals(@Nullable Object object)
    Two Link objects are considered equal if their content strings match exactly.
    Returns the value of this Link.
    int
     
    Returns the entire text of this Link.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Link

      public Link(String value)
      Constructs a new Link object with the specified value. This object cannot be modified after construction.
  • Method Details

    • getValue

      public String getValue()
      Returns the value of this Link.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object object)
      Two Link objects are considered equal if their content strings match exactly.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns the entire text of this Link.
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Link l)
      Specified by:
      compareTo in interface Comparable<Link>