static Predicate < DateValue > untilCondition ( final DateValue until ) { return new Predicate < DateValue > ( ) { public boolean apply ( DateValue date ) { return date . compareTo ( until ) <= 0 ; } @ Override public String toString ( ) { return "UntilCondition:" + until ; } } ; }
constructs a condition that passes for every date on or before until .