Package com.contentstack.sdk.utility
Enum CSAppUtils.DateComapareType
- java.lang.Object
-
- java.lang.Enum<CSAppUtils.DateComapareType>
-
- com.contentstack.sdk.utility.CSAppUtils.DateComapareType
-
- All Implemented Interfaces:
Serializable,Comparable<CSAppUtils.DateComapareType>,java.lang.constant.Constable
- Enclosing class:
- CSAppUtils
public static enum CSAppUtils.DateComapareType extends Enum<CSAppUtils.DateComapareType>
Type to compare dates.- Author:
- Contentstack
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description static CSAppUtils.DateComapareTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CSAppUtils.DateComapareType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEEK
public static final CSAppUtils.DateComapareType WEEK
-
DAY
public static final CSAppUtils.DateComapareType DAY
-
HOURS
public static final CSAppUtils.DateComapareType HOURS
-
MINUTES
public static final CSAppUtils.DateComapareType MINUTES
-
SECONDS
public static final CSAppUtils.DateComapareType SECONDS
-
-
Method Detail
-
values
public static CSAppUtils.DateComapareType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CSAppUtils.DateComapareType 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
-
-