Module jfxtras.agenda
Package jfxtras.scene.control.agenda
Enum Class TemporalUtilities.TemporalType
java.lang.Object
java.lang.Enum<TemporalUtilities.TemporalType>
jfxtras.scene.control.agenda.TemporalUtilities.TemporalType
- All Implemented Interfaces:
Serializable
,Comparable<TemporalUtilities.TemporalType>
,Constable
- Enclosing class:
- TemporalUtilities
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Map<Class<? extends Temporal>,
TemporalUtilities.TemporalType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Temporal
combineByType
(Temporal initialTemporal, TemporalAdjuster adjuster) applies the parameter adjuster to the initialTemporal adjuster must be either LocalDate or LocalDateTime If adjuster contains time, but initialTemporal doesn't, then the returned Temporal will be changed to contain time (as LocalDateTime).private static Temporal
combineDateBased
(Temporal initialTemporal, TemporalAdjuster adjuster) Class backing the TemporalTypeprivate static Map<Class<? extends Temporal>,
TemporalUtilities.TemporalType> makeMap()
protected abstract LocalDateTime
makes LocalDateTime from temporal that matches the TemporalTypeReturns the enum constant of this class with the specified name.static TemporalUtilities.TemporalType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIJRAH_DATE
-
INSTANT
-
JAPANESE_DATE
-
LOCAL_DATE
-
LOCAL_DATE_TIME
-
MINGUO_DATE
-
OFFSET_DATE_TIME
-
THAI_BUDDHIST_DATE
-
ZONED_DATE_TIME
-
-
Field Details
-
temporalClassToTemporalTypeMap
private static Map<Class<? extends Temporal>,TemporalUtilities.TemporalType> temporalClassToTemporalTypeMap -
clazz
-
-
Constructor Details
-
TemporalType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
makeMap
-
from
-
combineDateBased
-
getTemporalClass
Class backing the TemporalType -
toLocalDateTimeByType
makes LocalDateTime from temporal that matches the TemporalType -
combineByType
applies the parameter adjuster to the initialTemporal adjuster must be either LocalDate or LocalDateTime If adjuster contains time, but initialTemporal doesn't, then the returned Temporal will be changed to contain time (as LocalDateTime).
For example, If initialTemporal is a ZonedDateTime object representing 2007-12-03T10:15:30+01:00 Europe/Paris and adjuster represents 2007-12-05T10:12:30 then the returned Temporal will be 2007-12-05T10:12:30+01:00 Europe/Paris
Another example, if initialTemporal is a LocalDate object representing 2007-12-03 and adjuster represents 2007-12-05T10:12:30 then the returned Temporal will be 2007-12-05T10:12:30
-