Class InstantFunction

    • Constructor Detail

      • InstantFunction

        public InstantFunction()
    • Method Detail

      • isSame

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

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

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

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