Enum DateRangePrecision
- java.lang.Object
-
- java.lang.Enum<DateRangePrecision>
-
- com.datastax.dse.driver.api.core.data.time.DateRangePrecision
-
- All Implemented Interfaces:
Serializable,Comparable<DateRangePrecision>
@Deprecated public enum DateRangePrecision extends Enum<DateRangePrecision>
Deprecated.DSE server support was removed; local value operations remain available.The precision of aDateRangeBound.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringformat(ZonedDateTime timestamp)Deprecated.Formats the given timestamp according to this precision.static DateRangePrecisionfromEncoding(byte encoding)Deprecated.bytegetEncoding()Deprecated.The code used to represent the precision when a date range is encoded to binary.ZonedDateTimeroundDown(ZonedDateTime timestamp)Deprecated.Rounds down the given timestamp to this precision.ZonedDateTimeroundUp(ZonedDateTime timestamp)Deprecated.Rounds up the given timestamp to this precision.static DateRangePrecisionvalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static DateRangePrecision[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final DateRangePrecision MILLISECOND
Deprecated.
-
SECOND
public static final DateRangePrecision SECOND
Deprecated.
-
MINUTE
public static final DateRangePrecision MINUTE
Deprecated.
-
HOUR
public static final DateRangePrecision HOUR
Deprecated.
-
DAY
public static final DateRangePrecision DAY
Deprecated.
-
MONTH
public static final DateRangePrecision MONTH
Deprecated.
-
YEAR
public static final DateRangePrecision YEAR
Deprecated.
-
-
Method Detail
-
values
public static DateRangePrecision[] values()
Deprecated.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 (DateRangePrecision c : DateRangePrecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateRangePrecision valueOf(String name)
Deprecated.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
-
fromEncoding
@NonNull public static DateRangePrecision fromEncoding(byte encoding)
Deprecated.
-
getEncoding
public byte getEncoding()
Deprecated.The code used to represent the precision when a date range is encoded to binary.
-
roundUp
@NonNull public ZonedDateTime roundUp(@NonNull ZonedDateTime timestamp)
Deprecated.Rounds up the given timestamp to this precision.Temporal fields smaller than this precision will be rounded up; other fields will be left untouched.
-
roundDown
@NonNull public ZonedDateTime roundDown(@NonNull ZonedDateTime timestamp)
Deprecated.Rounds down the given timestamp to this precision.Temporal fields smaller than this precision will be rounded down; other fields will be left untouched.
-
format
@NonNull public String format(@NonNull ZonedDateTime timestamp)
Deprecated.Formats the given timestamp according to this precision.
-
-