Package com.faunadb.client.query
Enum Language.TimeUnit
- java.lang.Object
-
- java.lang.Enum<Language.TimeUnit>
-
- com.faunadb.client.query.Language.TimeUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<Language.TimeUnit>
- Enclosing class:
- Language
public static enum Language.TimeUnit extends Enum<Language.TimeUnit>
Enumeration for time units.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
HALF_DAY
HOUR
MICROSECOND
MILLISECOND
MINUTE
NANOSECOND
SECOND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Language.TimeUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static Language.TimeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAY
public static final Language.TimeUnit DAY
-
HALF_DAY
public static final Language.TimeUnit HALF_DAY
-
HOUR
public static final Language.TimeUnit HOUR
-
MINUTE
public static final Language.TimeUnit MINUTE
-
SECOND
public static final Language.TimeUnit SECOND
-
MILLISECOND
public static final Language.TimeUnit MILLISECOND
-
MICROSECOND
public static final Language.TimeUnit MICROSECOND
-
NANOSECOND
public static final Language.TimeUnit NANOSECOND
-
-
Method Detail
-
values
public static Language.TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Language.TimeUnit c : Language.TimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Language.TimeUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-