public static enum Watch.Event extends Enum<Watch.Event>
| Enum Constant and Description |
|---|
CREATED
A directory entry is created.
|
DELETED
A directory entry is deleted.
|
MODIFIED
A directory entry is modified.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCreated()
Returns
true if this is the CREATED value. |
boolean |
isDeleted()
Returns
true if this is the DELETED value. |
boolean |
isModified()
Returns
true if this is the MODIFIED value. |
static Watch.Event |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Watch.Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Watch.Event CREATED
public static final Watch.Event DELETED
public static final Watch.Event MODIFIED
public static Watch.Event[] values()
for (Watch.Event c : Watch.Event.values()) System.out.println(c);
public static Watch.Event 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 nullpublic final boolean isCreated()
true if this is the CREATED value.true if this is the CREATED value.public final boolean isDeleted()
true if this is the DELETED value.true if this is the DELETED value.Copyright © 2021–2022 Objectos Software LTDA. All rights reserved.