Interface PieceFilter
- All Known Implementing Classes:
BeanShellExpression.BshFilter
,BooleanAndPieceFilter
,BooleanOrPieceFilter
,CounterDetailViewer.Filter
,Inventory.Selector
,PropertyExpression
,RangeFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A filter for GamePieces
Sample implementations include:
PropertyExpression
- used for "matching expressions" in Global Key Commands and the like
RangeFilter
- filters for pieces within range of a point
BooleanOrPieceFilter
- "OR"s two Filters together to make one Amazing Disjunctive Filter
BooleanAndPieceFilter
- "AND"s two Filters together and you'd better satisfy both
CounterDetailViewer.Filter
- Filter created from Mouseover Stack Viewer settings
Inventory.Selector
- Layered filter for Piece Inventory window-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test if a piece matches the filter.default boolean
Test if a piece matches the filter and provide Expression auditing facilitiesdefault boolean
accept
(GamePiece piece, Auditable owner, AuditTrail audit) Test if a piece matches the filter and provide Expression auditing facilities
-
Method Details
-
accept
Test if a piece matches the filter. This sig should only be used for filters that can not have Expressions as a component of the filter and thus have no Expression Auditing requirementts- Parameters:
piece
- piece- Returns:
- true if piece match filter
-
accept
-
accept
Test if a piece matches the filter and provide Expression auditing facilities- Parameters:
piece
- piece to testowner
- owner of the filteraudit
- Audit Trail to record evaluation of the filter- Returns:
-