public final class Filter extends Object implements Function
Returns a new collection that exists of all the elements in the collection (specified by the second argument) for which the function (specified by the first
argument) returns true.
| Constructor and Description |
|---|
Filter(Type type)
Creates a higher order functions that filters the elements of a collection.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Arguments arguments,
Assignments assignments)
Returns the result of applying this operation to the specified
Arguments and Assignments. |
Signature |
getSignature()
Returns the return type and argument types associated with this function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayName, isPure, simplifypublic Filter(Type type)
type - the type of the elements contained in the collectionpublic Object evaluate(Arguments arguments, Assignments assignments)
FunctionArguments and Assignments.public Signature getSignature()
FunctiongetSignature in interface FunctionOakGP Genetic Programming Framework