java.lang.Object
com.google.appengine.api.datastore.Text
All Implemented Interfaces:
Serializable

public final class Text extends Object implements Serializable
Text wraps around a string of unlimited size.

Ordinary Java strings stored as properties in Entity objects are limited to 1500 bytes. However, Text objects can also be stored in properties, and are unlimited in size. However, they will not be indexed for query purposes.

Consider using a standard Java string and storing it with the PropertyContainer.setUnindexedProperty(java.lang.String, java.lang.Object) method instead.

See Also:
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    boolean
    equals(@Nullable Object object)
    Two Text objects are considered equal if their content strings match exactly.
    Return the value of this Text.
    int
     
    Returns the first 70 characters of the underlying string.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Text

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

    • getValue

      public String getValue()
      Return the value of this Text. Can be null.
    • hashCode

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

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

      public String toString()
      Returns the first 70 characters of the underlying string.
      Overrides:
      toString in class Object