|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.functor.core.Offset
public final class Offset
A predicate that returns false
the first n times it is invoked, and
true thereafter.
| Constructor Summary | |
|---|---|
Offset(int count)
Create a new Offset. |
|
| Method Summary | |
|---|---|
boolean |
test()
Evaluate this predicate. |
boolean |
test(java.lang.Object obj)
Evaluate this predicate. |
boolean |
test(java.lang.Object a,
java.lang.Object b)
Evaluate this predicate. |
java.lang.String |
toString()
Returns a human readable description of this functor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.functor.Functor |
|---|
equals, hashCode |
| Methods inherited from interface org.apache.commons.functor.Functor |
|---|
equals, hashCode |
| Methods inherited from interface org.apache.commons.functor.Functor |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Offset(int count)
count - offset| Method Detail |
|---|
public boolean test()
test in interface Predicatepublic boolean test(java.lang.Object obj)
test in interface UnaryPredicate<java.lang.Object>obj - the A object to test
public boolean test(java.lang.Object a,
java.lang.Object b)
test in interface BinaryPredicate<java.lang.Object,java.lang.Object>a - the L element of the ordered pair of argumentsb - the R element of the ordered pair of arguments
public java.lang.String toString()
Object
implementation of this method.
toString in interface FunctortoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||