public final class RawValue implements SerializableA raw datastore value.
These are returned by projection queries when a PropertyProjection does not specify a type. See Also: Query#getProjections()
Implements
SerializableMethods
<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.jspecify.annotations.Nullable T |
an object of type T or |
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 |
Nullable Object |
an object of type T or |
equals(@Nullable Object obj)
public boolean equals(@Nullable Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Nullable Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getValue()
public @Nullable Object getValue()Returns the raw value.
| Returns | |
|---|---|
| Type | Description |
Nullable Object |
An object of type Boolean, Double, GeoPt, Key, |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
toString()
public String toString()| Returns | |
|---|---|
| Type | Description |
String |
|