Class DateFunction

    • Constructor Detail

      • DateFunction

        public DateFunction()
    • Method Detail

      • isAfter

        public boolean isAfter​(Date expected,
                               Date actual)
        Description copied from interface: TemporalFunction
        Test if a temporal is after another temporal
        Specified by:
        isAfter in interface TemporalFunction<Date>
        Parameters:
        expected - the temporal to test for
        actual - the temporal to test against
        Returns:
        a boolean
      • isBefore

        public boolean isBefore​(Date expected,
                                Date actual)
        Description copied from interface: TemporalFunction
        Test if a temporal is before another temporal
        Specified by:
        isBefore in interface TemporalFunction<Date>
        Parameters:
        expected - the temporal to test for
        actual - the temporal to test against
        Returns:
        a boolean
      • isSame

        public boolean isSame​(Date expected,
                              Date actual)
        Description copied from interface: TemporalFunction
        Test if a temporal is the same as another temporal
        Specified by:
        isSame in interface TemporalFunction<Date>
        Parameters:
        expected - the temporal to test for
        actual - the temporal to test against
        Returns:
        a boolean
      • interval

        public Interval interval​(Date expected,
                                 Date actual,
                                 ChronoUnit unit)
        Description copied from interface: TemporalFunction
        Return the interval between two temporals
        Specified by:
        interval in interface TemporalFunction<Date>
        Parameters:
        expected - the temporal to test for
        actual - the temporal to test against
        unit - the unit to measure the interval in
        Returns:
        an Interval
      • describe

        public String describe​(Date temporal,
                               Locale locale)
        Description copied from interface: TemporalFunction
        Describe a temporal type
        Specified by:
        describe in interface TemporalFunction<Date>
        Parameters:
        temporal - the temporal instance to describe
        locale - the locale to describe the temporal in
        Returns:
        a string description of the temporal