public enum TimeOperation extends Enum<TimeOperation>
| Enum Constant and Description |
|---|
AFTER |
BEFORE |
BEFORE_OR_ON |
ON_OR_AFTER |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accept(ZonedDateTime date,
Instant instant) |
static TimeOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeOperation BEFORE
public static final TimeOperation BEFORE_OR_ON
public static final TimeOperation ON_OR_AFTER
public static final TimeOperation AFTER
public static TimeOperation[] values()
for (TimeOperation c : TimeOperation.values()) System.out.println(c);
public static TimeOperation 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 abstract boolean accept(ZonedDateTime date, Instant instant)
Copyright © 2019. All rights reserved.