public static enum VanillaChronicle.Cycle extends Enum<VanillaChronicle.Cycle>
Modifier and Type | Method and Description |
---|---|
long |
entries() |
static VanillaChronicle.Cycle |
forFormat(String format) |
static VanillaChronicle.Cycle |
forLength(int length) |
String |
format() |
int |
length() |
static VanillaChronicle.Cycle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VanillaChronicle.Cycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaChronicle.Cycle SECONDS
public static final VanillaChronicle.Cycle MINUTES
public static final VanillaChronicle.Cycle HOURS
public static final VanillaChronicle.Cycle DAYS
public static VanillaChronicle.Cycle[] values()
for (VanillaChronicle.Cycle c : VanillaChronicle.Cycle.values()) System.out.println(c);
public static VanillaChronicle.Cycle 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 static VanillaChronicle.Cycle forLength(int length)
public static VanillaChronicle.Cycle forFormat(String format)
public String format()
public int length()
public long entries()
Copyright © 2017. All rights reserved.