DocumentChange.Type

public enum DocumentChange.Type


An enumeration of snapshot diff types.

Summary

Enum Values

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.

Public methods

static DocumentChange.Type

Returns the enum constant of this type with the specified name.

static DocumentChange.Type[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ADDED

DocumentChange.Type DocumentChange.Type.ADDED

Indicates a new document was added to the set of documents matching the query.

MODIFIED

DocumentChange.Type DocumentChange.Type.MODIFIED

Indicates a document within the query was modified.

REMOVED

DocumentChange.Type DocumentChange.Type.REMOVED

Indicates a document within the query was removed (either deleted or no longer matches the query.

Public methods

valueOf

public static DocumentChange.Type valueOf(String name)

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.)

Returns
DocumentChange.Type

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static DocumentChange.Type[] values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
DocumentChange.Type[]

an array containing the constants of this enum type, in the order they're declared