public final class Text implements SerializableText 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 Entity#setUnindexedProperty method instead.
Implements
SerializableStatic Fields
serialVersionUID
public static final long serialVersionUID| Field Value | |
|---|---|
| Type | Description |
long |
|
Constructors
Text(String value)
public Text(String value)Construct a new Text object with the specified value. This object cannot be modified
after construction.
| Parameter | |
|---|---|
| Name | Description |
value |
String |
Methods
equals(@Nullable Object object)
public boolean equals(@Nullable Object object)Two Text objects are considered equal if their content strings match exactly.
| Parameter | |
|---|---|
| Name | Description |
object |
Nullable Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getValue()
public String getValue()Return the value of this Text. Can be null.
| Returns | |
|---|---|
| Type | Description |
String |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()Returns the first 70 characters of the underlying string.
| Returns | |
|---|---|
| Type | Description |
String |
|