|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.lth.cs.nlp.nlputils.core.Predicate<T>
public abstract class Predicate<T>
A callable one-argument predicate.
Field Summary | |
---|---|
static Predicate |
FALSE
A predicate that always returns false. |
protected Object |
in
Initiation parameter. |
static Predicate |
TRUE
A predicate that always returns true. |
Constructor Summary | |
---|---|
Predicate()
Initiates the predicate. |
|
Predicate(Object in)
Initiates the predicate with a parameter. |
Method Summary | |
---|---|
abstract boolean |
apply(T o)
Calls this predicate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Predicate TRUE
public static final Predicate FALSE
protected Object in
Constructor Detail |
---|
public Predicate()
public Predicate(Object in)
in
- an initiation parameter.Method Detail |
---|
public abstract boolean apply(T o)
o
- the object to test.
o
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |