Class TemporalComparator

  • All Implemented Interfaces:
    Comparator<Temporal>

    public class TemporalComparator
    extends Object
    implements Comparator<Temporal>
    The purpose of this comparator is to compare two temporals regardless of type. Some temporal types are not directly comparable, due to differences in supported units. For these cases we support hints to indicate how they should be compared. Compare Temporal values based on a specified ChronoUnit.