public enum TimeFormat extends Enum<TimeFormat>
Enum Constant and Description |
---|
DATE
Date representation.
|
DATETIME
Date and time representation.
|
DOUBLE
Date represented as a double number.
|
Modifier and Type | Method and Description |
---|---|
abstract double |
parse(String str)
Parses the given string into the time format.
|
abstract String |
print(double time)
Prints the given time in this format.
|
static TimeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeFormat DATE
public static final TimeFormat DATETIME
public static final TimeFormat DOUBLE
public static TimeFormat[] values()
for (TimeFormat c : TimeFormat.values()) System.out.println(c);
public static TimeFormat 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 double parse(String str)
str
- the string to parsepublic abstract String print(double time)
time
- the timeCopyright © 2007–2015 Gephi Consortium. All rights reserved.