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
Name Description
type Class<T>

the class object for the desired type

Returns
Type Description
@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
Name Description
type Class<?>

the class object for the desired type

Returns
Type Description
@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
Name Description
obj @org.checkerframework.checker.nullness.qual.Nullable java.lang.Object
Returns
Type Description
boolean
Overrides

getValue()

public @Nullable Object getValue()

Returns the raw value.

Returns
Type Description
@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
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides