public enum RollCycles extends Enum<RollCycles> implements RollCycle
Enum Constant and Description |
---|
DAILY |
HOURLY |
HUGE_DAILY |
LARGE_DAILY |
MINUTELY |
SECONDLY |
SMALL_DAILY |
TEST_DAILY |
XLARGE_DAILY |
Modifier and Type | Method and Description |
---|---|
int |
defaultIndexCount() |
int |
defaultIndexSpacing() |
String |
format() |
int |
length() |
int |
toCycle(long index) |
long |
toIndex(int cycle,
long sequenceNumber) |
long |
toSequenceNumber(long index) |
static RollCycles |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RollCycles[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RollCycles SECONDLY
public static final RollCycles MINUTELY
public static final RollCycles HOURLY
public static final RollCycles TEST_DAILY
public static final RollCycles SMALL_DAILY
public static final RollCycles DAILY
public static final RollCycles LARGE_DAILY
public static final RollCycles XLARGE_DAILY
public static final RollCycles HUGE_DAILY
public static RollCycles[] values()
for (RollCycles c : RollCycles.values()) System.out.println(c);
public static RollCycles 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 int defaultIndexCount()
defaultIndexCount
in interface RollCycle
public int defaultIndexSpacing()
defaultIndexSpacing
in interface RollCycle
public long toIndex(int cycle, long sequenceNumber)
public long toSequenceNumber(long index)
toSequenceNumber
in interface RollCycle
Copyright © 2016. All rights reserved.