public static class SimplifiedIntervalList.SkippingIntervalPredicate extends Object implements Predicate<org.joda.time.Interval>
Constructor and Description |
---|
SkippingIntervalPredicate(SimplifiedIntervalList supplyList,
BiPredicate<org.joda.time.Interval,org.joda.time.Interval> testPredicate,
boolean defaultValue)
Constructor to build a predicate that applies an arbitrary predicate to not-before intervals from the
iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(org.joda.time.Interval testInterval)
Skip through the supply intervals until an active interval matches (that is, one which is at or after the
test interval) is located and then test it against the testPredicate.
|
public SkippingIntervalPredicate(SimplifiedIntervalList supplyList, BiPredicate<org.joda.time.Interval,org.joda.time.Interval> testPredicate, boolean defaultValue)
supplyList
- The SimplifiedList of intervals to test the predicate againsttestPredicate
- The predicate to use when testing an interval against the supplydefaultValue
- The value for the test if no comparison interval can be found in the list.public boolean test(org.joda.time.Interval testInterval)
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.