com.google.appengine.api.datastore
Class Text
- java.lang.Object
-
- com.google.appengine.api.datastore.Text
-
- All Implemented Interfaces:
- java.io.Serializable
public final class Text extends java.lang.Object implements java.io.SerializableTextwraps around a string of unlimited size.Ordinary Java strings stored as properties in
Entityobjects are limited to 1500 bytes. However,Textobjects 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor and Description Text(java.lang.String value)Construct a newTextobject with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object object)TwoTextobjects are considered equal if their content strings match exactly.java.lang.StringgetValue()Return the value of thisText.inthashCode()java.lang.StringtoString()Returns the first 70 characters of the underlying string.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Text
public Text(java.lang.String value)
Construct a newTextobject with the specified value. This object cannot be modified after construction.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Return the value of thisText. Can benull.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
TwoTextobjects are considered equal if their content strings match exactly.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Returns the first 70 characters of the underlying string.- Overrides:
toStringin classjava.lang.Object
-
-