Package com.google.cloud.datastore
Class Value<V>
- java.lang.Object
-
- com.google.cloud.datastore.Value<V>
-
- Type Parameters:
V- the type of the content for this value
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlobValue,BooleanValue,DoubleValue,EntityValue,KeyValue,LatLngValue,ListValue,LongValue,NullValue,RawValue,StringValue,TimestampValue
public abstract class Value<V> extends Object implements Serializable
Base class for all Google Cloud Datastore value types. All values must be associated with a non-null content (exceptNullValue). All values are immutable (including their content). To edit (a copy) usetoBuilder(). Unsupported value (deprecated or unrecognized) would be represented byRawValue.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanexcludeFromIndexes()Returns whether this value should be excluded from indexes.static Value<?>fromPb(Value proto)Vget()ValueTypegetType()Returns the type of this value.inthashCode()abstract ValueBuilder<?,?,?>toBuilder()StringtoString()
-
-
-
Method Detail
-
getType
public final ValueType getType()
Returns the type of this value.
-
excludeFromIndexes
public final boolean excludeFromIndexes()
Returns whether this value should be excluded from indexes.
-
get
public final V get()
-
toBuilder
public abstract ValueBuilder<?,?,?> toBuilder()
-
-