Class TemporalExpressions.MinuteRange

    • Field Detail

      • module

        public static final java.lang.String module
      • end

        protected final int end
      • start

        protected final int start
    • Constructor Detail

      • MinuteRange

        public MinuteRange​(int minute)
        Parameters:
        minute - An integer in the range of 0 to 59.
      • MinuteRange

        public MinuteRange​(int start,
                           int end)
        Parameters:
        start - An integer in the range of 0 to 59.
        end - An integer in the range of 0 to 59.
    • Method Detail

      • first

        public com.ibm.icu.util.Calendar first​(com.ibm.icu.util.Calendar cal)
        Description copied from class: TemporalExpression
        Returns a date representing the first occurrence of this expression on or after a specified date. Returns null if there is no matching date.
        Specified by:
        first in class TemporalExpression
        Parameters:
        cal - A date to evaluate
        Returns:
        A Calendar instance representing the first matching date, or null if no matching date is found
      • getEndMinute

        public int getEndMinute()
        Returns the ending minute of this range.
        Returns:
        The ending minute of this range
      • getMinuteRangeAsSet

        public java.util.Set<java.lang.Integer> getMinuteRangeAsSet()
      • getStartMinute

        public int getStartMinute()
        Returns the starting minute of this range.
        Returns:
        The starting minute of this range
      • includesDate

        public boolean includesDate​(com.ibm.icu.util.Calendar cal)
        Description copied from class: TemporalExpression
        Returns true if this expression includes the specified date.
        Specified by:
        includesDate in class TemporalExpression
        Parameters:
        cal - A date to evaluate
        Returns:
        true if this expression includes the date represented by cal
      • isSubstitutionCandidate

        public boolean isSubstitutionCandidate​(com.ibm.icu.util.Calendar cal,
                                               TemporalExpression expressionToTest)
        Description copied from class: TemporalExpression
        Returns true if this expression is a candidate for substitution using the expression expressionToTest for the date cal. A Substitution object will call this method when it needs to know if this expression could have produced the date cal based on the expression expressionToTest.
        Specified by:
        isSubstitutionCandidate in class TemporalExpression
        Parameters:
        cal - A date to evaluate
        expressionToTest - An expression to evaluate
        Returns:
        true if this expression could have produced the date cal using the expression expressionToTest