⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.functors

Class TransformerPredicate

java.lang.Object
|
+--org.apache.commons.collections.functors.TransformerPredicate

All Implemented Interfaces:
Predicate, Serializable


public final class TransformerPredicate
extends java.lang.Object
implements Predicate, Serializable

Predicate implementation that returns the result of a transformer.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Constructor Summary

TransformerPredicate(Transformer transformer)

Constructor that performs no validation.

Method Summary

boolean

evaluate(Object object)

Return the predicate result.

static Predicate

getInstance(Transformer transformer)

Factory to create the predicate.

Constructor Details

TransformerPredicate

public TransformerPredicate(Transformer transformer)

Constructor that performs no validation. Use getInstance if you want that.

Parameters:
transformer

Method Details

evaluate

public boolean evaluate(Object object)

Return the predicate result.

Parameters:
object

getInstance

public static Predicate getInstance(Transformer transformer)

Factory to create the predicate.

Parameters:
transformer
Returns:
the transformer
Throws:
- if the transformer is null