Package com.google.cloud.firestore
Enum DocumentChange.Type
- All Implemented Interfaces:
Serializable,Comparable<DocumentChange.Type>
- Enclosing class:
- DocumentChange
An enumeration of snapshot diff types.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentChange.TypeReturns the enum constant of this type with the specified name.static DocumentChange.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADDED
Indicates a new document was added to the set of documents matching the query. -
MODIFIED
Indicates a document within the query was modified. -
REMOVED
Indicates a document within the query was removed (either deleted or no longer matches the query.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-