public enum ReturnDocument extends Enum<ReturnDocument>
| Enum Constant and Description |
|---|
AFTER
Indicates to return the document after the update, replacement, or insert occurred.
|
BEFORE
Indicates to return the document before the update, replacement, or insert occurred.
|
| Modifier and Type | Method and Description |
|---|---|
static ReturnDocument |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReturnDocument[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnDocument BEFORE
public static final ReturnDocument AFTER
public static ReturnDocument[] values()
for (ReturnDocument c : ReturnDocument.values()) System.out.println(c);
public static ReturnDocument valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null