Top Description Fields Constructors Methods
org.apache.commons.collections4.functors

public final Class TruePredicate<T>

extends Object
implements Predicate<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.apache.commons.collections4.Predicate
Imports
java.io.Serializable, org.apache.commons.collections4.Predicate

Predicate implementation that always returns true.
Since
3.0

Field Summary

Modifier and TypeField and Description
public static final Predicate<T>
INSTANCE

Singleton predicate instance

private static final long
serialVersionUID

Serial version UID

Constructor Summary

AccessConstructor and Description
private
TruePredicate()

Restricted constructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true always
evaluate
(final T
the input object
object
)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate returning true always.
private Object
public static <
the type that the predicate queries
T
>
Predicate<T>

Returns:

the singleton instance
truePredicate
()

Factory returning the singleton instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final Predicate<T> INSTANCE

Singleton predicate instance

Annotations
@SuppressWarnings:rawtypes
serialVersionUIDback to summary
private static final long serialVersionUID

Serial version UID

Constructor Detail

TruePredicateback to summary
private TruePredicate()

Restricted constructor.

Method Detail

evaluateback to summary
public boolean evaluate(final T object)

Implements org.apache.commons.collections4.Predicate.evaluate.

Evaluates the predicate returning true always.

Parameters
object:T

the input object

Returns:boolean

true always

Annotations
@Override
readResolveback to summary
private Object readResolve()
truePredicateback to summary
public static <T> Predicate<T> truePredicate()

Factory returning the singleton instance.

Parameters
<T>
the type that the predicate queries
Returns:Predicate<T>

the singleton instance

Since
3.1