Class RawValue (2.0.0)

public final class RawValue implements Serializable

A raw datastore value.

These are returned by projection queries when a PropertyProjection does not specify a type. See Also: Query#getProjections()

Inheritance

java.lang.Object > RawValue

Implements

Serializable

Methods

<T>asStrictType(Class<T> type)

public @Nullable T <T>asStrictType(Class<T> type)

Returns an object of the exact type passed in.

Parameter
NameDescription
typeClass<T>

the class object for the desired type

Returns
TypeDescription
@org.checkerframework.checker.nullness.qual.Nullable T

an object of type T or null

asType(Class<?> type)

public @Nullable Object asType(Class<?> type)

Returns the object normally returned by the datastore if given type is passed in.

All integer values are returned as Long. All floating point values are returned as Double.

Parameter
NameDescription
typeClass<?>

the class object for the desired type

Returns
TypeDescription
@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object

an object of type T or null

equals(@Nullable Object obj)

public boolean equals(@Nullable Object obj)
Parameter
NameDescription
obj@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
TypeDescription
boolean
Overrides

getValue()

public @Nullable Object getValue()

Returns the raw value.

Returns
TypeDescription
@org.checkerframework.checker.nullness.qual.Nullable java.lang.Object

An object of type Boolean, Double, GeoPt, Key, byte[], User or null.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides