| Package | flare.util |
| Class | public class Filter |
$() method takes an arbitrary object and generates a
corresponding filter function.
Filter functions are functions that take one argument and return a
Boolean value. The input argument to a filter function
passes the filter if the function returns true and fails the
filter if the function returns false.
| Method | Defined by | ||
|---|---|---|---|
|
Filter()
Constructor, throws an error if called, as this is an abstract class.
| Filter | ||
|
$(f:*):Function
[static]
Convenience method that returns a filter function determined by the
input object.
| Filter | ||
|
typeChecker(type:Class):Function
[static]
Returns a filter function that performs type-checking.
| Filter | ||
| Filter | () | constructor |
public function Filter()Constructor, throws an error if called, as this is an abstract class.
| $ | () | method |
public static function $(f:*):FunctionConvenience method that returns a filter function determined by the input object.
Function, it is simply
returned.IPredicate, its
predicate function is returned.String, a Property
instance with the string as the property name is generated, and
the predicate function of the property is
returned.Class instance, a function that
performs type-checking for that class type is returned.f:* — an input object specifying the filter criteria
|
Function — the filter function
|
| typeChecker | () | method |
public static function typeChecker(type:Class):FunctionReturns a filter function that performs type-checking.
Parameterstype:Class — the Class type to check for
|
Function — a Boolean-valued type checking filter function
|