- java.lang.Object
-
- java.lang.Enum<KSQLWindow.TimeUnit>
-
- net.sf.jsqlparser.statement.select.KSQLWindow.TimeUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<KSQLWindow.TimeUnit>
- Enclosing class:
- KSQLWindow
public static enum KSQLWindow.TimeUnit extends Enum<KSQLWindow.TimeUnit>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
DAYS
HOUR
HOURS
MILLISECOND
MILLISECONDS
MINUTE
MINUTES
SECOND
SECONDS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KSQLWindow.TimeUnit
from(String unit)
static KSQLWindow.TimeUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static KSQLWindow.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 KSQLWindow.TimeUnit DAY
-
HOUR
public static final KSQLWindow.TimeUnit HOUR
-
MINUTE
public static final KSQLWindow.TimeUnit MINUTE
-
SECOND
public static final KSQLWindow.TimeUnit SECOND
-
MILLISECOND
public static final KSQLWindow.TimeUnit MILLISECOND
-
DAYS
public static final KSQLWindow.TimeUnit DAYS
-
HOURS
public static final KSQLWindow.TimeUnit HOURS
-
MINUTES
public static final KSQLWindow.TimeUnit MINUTES
-
SECONDS
public static final KSQLWindow.TimeUnit SECONDS
-
MILLISECONDS
public static final KSQLWindow.TimeUnit MILLISECONDS
-
-
Method Detail
-
values
public static KSQLWindow.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 (KSQLWindow.TimeUnit c : KSQLWindow.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 KSQLWindow.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
-
from
public static KSQLWindow.TimeUnit from(String unit)
-
-