public final class Limit extends Object implements Predicate, UnaryPredicate<Object>, BinaryPredicate<Object,Object>, Serializable
true
the first n times it is invoked, and
false thereafter.| Constructor and Description |
|---|
Limit(int count)
Create a new Limit.
|
public Limit(int count)
count - limitpublic boolean test()
public boolean test(Object obj)
test in interface UnaryPredicate<Object>obj - the A object to testpublic boolean test(Object a, Object b)
test in interface BinaryPredicate<Object,Object>a - the L element of the ordered pair of argumentsb - the R element of the ordered pair of argumentsCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.