public static class SimplifiedIntervalList.SkippingIntervalPredicate
A predicate to scan a Simplified Interval List using an iterator and a test predicate.
An iterator over the list is scanned until an interval not fully before the interval under test is found. If
no such interval exists, a default value is returned. This predicate can be reused as long as each subsequent
call to the test has an equal or later start date.
Constructor to build a predicate that applies an arbitrary predicate to not-before intervals from the
supplyList - The SimplifiedList of intervals to test the predicate against
testPredicate - The predicate to use when testing an interval against the supply
defaultValue - The value for the test if no comparison interval can be found in the list.
public 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.
If no comparison interval is found, return a default value.