Class TemporalUtilities

java.lang.Object
jfxtras.scene.control.agenda.TemporalUtilities

public final class TemporalUtilities extends Object
Contains the methods to convert to and from LocalDateTime to other Temporal classes
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Temporal
    combine(Temporal initialTemporal, TemporalAdjuster adjuster)
    applies the parameter adjuster to the initialTemporal adjuster must be either LocalDate or 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-05
    makes LocalDateTime from temporal followed rules in TemporalType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TemporalUtilities

      private TemporalUtilities()
  • Method Details

    • combine

      public static Temporal combine(Temporal initialTemporal, TemporalAdjuster adjuster)
      applies the parameter adjuster to the initialTemporal adjuster must be either LocalDate or 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-05
    • toLocalDateTime

      public static LocalDateTime toLocalDateTime(Temporal temporal)
      makes LocalDateTime from temporal followed rules in TemporalType