|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetstream.filter.Filter.NOT<T>
public static final class Filter.NOT<T extends FilterTarget>
Inverts the values returned by a source filter.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jnetstream.filter.Filter |
|---|
Filter.AND<T extends FilterTarget>, Filter.MAXIMUM<T extends FilterTarget>, Filter.MINIMUM<T extends FilterTarget>, Filter.NOT<T extends FilterTarget>, Filter.OR<T extends FilterTarget> |
| Field Summary |
|---|
| Fields inherited from interface org.jnetstream.filter.Filter |
|---|
TRUE |
| Constructor Summary | |
|---|---|
Filter.NOT(Filter<T> filter)
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.nio.ByteBuffer buffer,
T target)
Value of the source filter is inverted. |
long |
execute(java.nio.ByteBuffer buffer,
T target)
The execute method will invert the returned length to either Long.MAX_VALUE or 0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Filter.NOT(Filter<T> filter)
filter - source filter who's values will be NOTed| Method Detail |
|---|
public boolean accept(java.nio.ByteBuffer buffer,
T target)
throws FilterException
accept() will return false. If the source filter
returns false, this accept() will return true;
accept in interface Filter<T extends FilterTarget>buffer - buffer to execute ontarget - the target specific filter
FilterExceptionFilter.accept(java.nio.ByteBuffer,
org.jnetstream.filter.FilterTarget)
public long execute(java.nio.ByteBuffer buffer,
T target)
throws FilterException
accept() as Long.MAX_VALUE. If
the source filter returned a non zero value, a zero will be returned.
execute in interface Filter<T extends FilterTarget>buffer - buffer to execute ontarget - the target specific filter
FilterException - TODOFilter.execute(java.nio.ByteBuffer,
org.jnetstream.filter.FilterTarget)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||