Class RangeDateRule
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.RangeDateRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfirstAfter(Date start) Return the first occurrance of the event represented by this rule that is on or after the given start date.firstBetween(Date start, Date end) Return the first occurrance of the event represented by this rule that is on or after the given start date and before the given end date.booleanCheck whether this event occurs at least once between the two dates given.booleanChecks whether this event occurs on the given date.
-
Constructor Details
-
RangeDateRule
public RangeDateRule()
-
-
Method Details
-
add
-
add
-
firstAfter
Description copied from interface:DateRuleReturn the first occurrance of the event represented by this rule that is on or after the given start date.- Specified by:
firstAfterin interfaceDateRule- Parameters:
start- Only occurrances on or after this date are returned.- Returns:
- The date on which this event occurs, or null if it does not occur on or after the start date.
- See Also:
-
firstBetween
Description copied from interface:DateRuleReturn the first occurrance of the event represented by this rule that is on or after the given start date and before the given end date.- Specified by:
firstBetweenin interfaceDateRule- Parameters:
start- Only occurrances on or after this date are returned.end- Only occurrances before this date are returned.- Returns:
- The date on which this event occurs, or null if it does not occur between the start and end dates.
- See Also:
-
isOn
Description copied from interface:DateRuleChecks whether this event occurs on the given date. This does not take time of day into account; instead it checks whether this event and the given date are on the same day. This is useful for applications such as determining whether a given day is a holiday. -
isBetween
-