Class Dates


  • public class Dates
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends java.time.temporal.Temporal>
      Range<T>
      range​(T from, java.time.temporal.ChronoUnit range)
      Create a temporal range, starting from the provided from and with a size containing exactly one of the provided chrono unit.
      static <T extends java.time.temporal.Temporal>
      Range<T>
      range​(T from, T until)
      Creates a temporal range, where the range is valid from (inclusive) until (exclusive) a preset temporal instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • range

        public static <T extends java.time.temporal.Temporal> Range<T> range​(T from,
                                                                             T until)
        Creates a temporal range, where the range is valid from (inclusive) until (exclusive) a preset temporal instance.
        Type Parameters:
        T - the type of temporal
        Parameters:
        from - the from (inclusive) temporal
        until - the until (exclusive) temporal
        Returns:
        the ranged temporal
      • range

        public static <T extends java.time.temporal.Temporal> Range<T> range​(T from,
                                                                             java.time.temporal.ChronoUnit range)
        Create a temporal range, starting from the provided from and with a size containing exactly one of the provided chrono unit.
        Type Parameters:
        T - the type of the range
        Parameters:
        from - the start of the range (inclusive)
        range - the size of the range
        Returns:
        the created range