xp-framework/rfc — Issue #98: Generic Filter interface
Author: thekid
Created: 2011-10-17 15:53:49+00:00
State: open
Labels: draft, framework

Scope of Change
====
A generic Filter interface will be created.

Rationale
====
Reusable iteration iteration / filter model.

Functionality
====

The filter interface
----

```php

```

Futurama: XP language version
----

```php
{

/**
* Returns whether to accept the given object.
*
*/
public bool accept(T $subject);
}
?>
```

Security considerations
====
n/a

Speed impact
====
n/a

Dependencies
====
- The io.collections.iterate package will be changed to use the
Filter interface instead of defining its own.

Related documents
====
n/a