- java.lang.Object
-
- java.lang.Enum<TruncatedTime.Truncated>
-
- io.rxmicro.validation.constraint.TruncatedTime.Truncated
-
- All Implemented Interfaces:
Serializable,Comparable<TruncatedTime.Truncated>
- Enclosing class:
- TruncatedTime
public static enum TruncatedTime.Truncated extends Enum<TruncatedTime.Truncated>
SupportedTruncatedTime.Truncatedmode.- Since:
- 0.1
- Author:
- nedis
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TruncatedTime.TruncatedvalueOf(String name)Returns the enum constant of this type with the specified name.static TruncatedTime.Truncated[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLIS
public static final TruncatedTime.Truncated MILLIS
Must be an instant without milli seconds.
-
SECONDS
public static final TruncatedTime.Truncated SECONDS
Must be an instant without milli seconds and seconds.
-
MINUTES
public static final TruncatedTime.Truncated MINUTES
Must be an instant without milli seconds, seconds and minutes.
-
HOURS
public static final TruncatedTime.Truncated HOURS
Must be an instant without time, i.e. time must be 00:00:00.000.
-
-
Method Detail
-
values
public static TruncatedTime.Truncated[] 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 (TruncatedTime.Truncated c : TruncatedTime.Truncated.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TruncatedTime.Truncated 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
-
-