Enum VTLChronoField
- java.lang.Object
-
- java.lang.Enum<VTLChronoField>
-
- it.bancaditalia.oss.vtl.impl.types.data.date.VTLChronoField
-
- All Implemented Interfaces:
Serializable
,Comparable<VTLChronoField>
,TemporalField
public enum VTLChronoField extends Enum<VTLChronoField> implements TemporalField
-
-
Enum Constant Summary
Enum Constants Enum Constant Description QUARTER_OF_SEMESTER
SEMESTER_OF_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends Temporal>
RadjustInto(R temporal, long newValue)
TemporalUnit
getBaseUnit()
String
getDisplayName(Locale locale)
long
getFrom(TemporalAccessor temporal)
TemporalUnit
getRangeUnit()
boolean
isDateBased()
boolean
isSupportedBy(TemporalAccessor temporal)
boolean
isTimeBased()
ValueRange
range()
ValueRange
rangeRefinedBy(TemporalAccessor temporal)
String
toString()
static VTLChronoField
valueOf(String name)
Returns the enum constant of this type with the specified name.static VTLChronoField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface java.time.temporal.TemporalField
resolve
-
-
-
-
Enum Constant Detail
-
SEMESTER_OF_YEAR
public static final VTLChronoField SEMESTER_OF_YEAR
-
QUARTER_OF_SEMESTER
public static final VTLChronoField QUARTER_OF_SEMESTER
-
-
Method Detail
-
values
public static VTLChronoField[] 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 (VTLChronoField c : VTLChronoField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VTLChronoField 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
-
getDisplayName
public String getDisplayName(Locale locale)
- Specified by:
getDisplayName
in interfaceTemporalField
-
getBaseUnit
public TemporalUnit getBaseUnit()
- Specified by:
getBaseUnit
in interfaceTemporalField
-
getRangeUnit
public TemporalUnit getRangeUnit()
- Specified by:
getRangeUnit
in interfaceTemporalField
-
range
public ValueRange range()
- Specified by:
range
in interfaceTemporalField
-
isDateBased
public boolean isDateBased()
- Specified by:
isDateBased
in interfaceTemporalField
-
isTimeBased
public boolean isTimeBased()
- Specified by:
isTimeBased
in interfaceTemporalField
-
isSupportedBy
public boolean isSupportedBy(TemporalAccessor temporal)
- Specified by:
isSupportedBy
in interfaceTemporalField
-
rangeRefinedBy
public ValueRange rangeRefinedBy(TemporalAccessor temporal)
- Specified by:
rangeRefinedBy
in interfaceTemporalField
-
getFrom
public long getFrom(TemporalAccessor temporal)
- Specified by:
getFrom
in interfaceTemporalField
-
adjustInto
public <R extends Temporal> R adjustInto(R temporal, long newValue)
- Specified by:
adjustInto
in interfaceTemporalField
-
toString
public String toString()
- Specified by:
toString
in interfaceTemporalField
- Overrides:
toString
in classEnum<VTLChronoField>
-
-