- java.lang.Object
-
- com.jongsoft.lang.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 providedfromand 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.
-
-
-
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) temporaluntil- 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 providedfromand 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
-
-