public abstract class FieldValue extends Object
| Modifier and Type | Method and Description |
|---|---|
static FieldValue |
arrayRemove(Object... elements)
Returns a special value that can be used with set() or update() that tells the server to remove
the given elements from any array value that already exists on the server.
|
static FieldValue |
arrayUnion(Object... elements)
Returns a special value that can be used with set() or update() that tells the server to union
the given elements with any array value that already exists on the server.
|
static FieldValue |
delete()
Returns a sentinel used with update() to mark a field for deletion.
|
boolean |
equals(Object obj)
Returns true if this FieldValue is equal to the provided object.
|
int |
hashCode() |
static FieldValue |
serverTimestamp()
Returns a sentinel used with set() or update() to include a server-generated timestamp in the
written data.
|
@Nonnull public static FieldValue serverTimestamp()
@Nonnull public static FieldValue delete()
@Nonnull public static FieldValue arrayUnion(@Nonnull Object... elements)
elements - The elements to union into the array.@Nonnull public static FieldValue arrayRemove(@Nonnull Object... elements)
elements - The elements to remove from the array.public boolean equals(Object obj)
Copyright © 2018 Google LLC. All rights reserved.