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

public static enum TemporalUtilities.TemporalType extends Enum<TemporalUtilities.TemporalType>
Author:
David Bal
  • Enum Constant Details

  • Method Details

    • values

      public static TemporalUtilities.TemporalType[] 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

      public static TemporalUtilities.TemporalType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • from

      public static TemporalUtilities.TemporalType from(Class<? extends Temporal> clazz)
    • getTemporalClass

      public Class<? extends Temporal> getTemporalClass()
      Class backing the TemporalType
    • toLocalDateTimeByType

      protected abstract LocalDateTime toLocalDateTimeByType(Temporal t)
      makes LocalDateTime from temporal that matches the TemporalType
    • combineByType

      protected 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).
      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