Class Value<V> (2.23.0)

public abstract class Value<V> implements Serializable

Base class for all Google Cloud Datastore value types. All values must be associated with a non-null content (except NullValue). All values are immutable (including their content). To edit (a copy) use #toBuilder(). Unsupported value (deprecated or unrecognized) would be represented by RawValue.

Inheritance

Object > Value<V>

Implements

Serializable

Type Parameter

Name Description
V

Static Methods

fromPb(Value proto)

public static Value<?> fromPb(Value proto)
Parameter
Name Description
proto Value
Returns
Type Description
Value<?>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

excludeFromIndexes()

public final boolean excludeFromIndexes()

Returns whether this value should be excluded from indexes.

Returns
Type Description
boolean

get()

public final V get()
Returns
Type Description
V

getType()

public final ValueType getType()

Returns the type of this value.

Returns
Type Description
ValueType

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public abstract ValueBuilder<?,?,?> toBuilder()
Returns
Type Description
ValueBuilder<?,?,?>

toString()

public String toString()
Returns
Type Description
String
Overrides