![]() |
GrammarScope
4.0.0
|


Public Member Functions | |
| BasicFilter (final boolean acceptNullFlag) | |
| boolean | accept (final HasId hasId) |
| boolean | accept (final String id) |
| Collection< String > | keys () |
| void | setAccept (final String id, final boolean flag) |
Public Member Functions inherited from grammarscope.server.iface.IFilter< T > | |
| boolean | accept (T obj) |
Protected Attributes | |
| final boolean | acceptNull |
| Map< String, Boolean > | acceptMap |
Package Functions | |
| public< E extends HasId > List< E > | filter (final Collection< E > list0) |
| grammarscope.filter.BasicFilter< T extends HasId >.BasicFilter | ( | final boolean | acceptNullFlag | ) |
Constructor
| acceptNullFlag | whether null flag means accept |
| boolean grammarscope.filter.BasicFilter< T extends HasId >.accept | ( | final HasId | hasId | ) |
| boolean grammarscope.filter.BasicFilter< T extends HasId >.accept | ( | final String | id | ) |
Checks if the given object passes the filter.
| id | id to test |
Implements grammarscope.server.iface.IFilter< T >.
|
package |
Filter list of objects having id
| list0 | source list of objects |
| <E> | element type |
| Collection<String> grammarscope.filter.BasicFilter< T extends HasId >.keys | ( | ) |
| void grammarscope.filter.BasicFilter< T extends HasId >.setAccept | ( | final String | id, |
| final boolean | value | ||
| ) |
Set acceptance value for object.
| id | object id to test |
| value | value |
Implements grammarscope.iface.IMutableFilter< T >.
|
protected |
Accept map
|
protected |
Null is false
1.8.17