Class BooleanOrPieceFilter

java.lang.Object
VASSAL.counters.BooleanOrPieceFilter
All Implemented Interfaces:
PieceFilter

public class BooleanOrPieceFilter extends Object implements PieceFilter
Boolean Or of two PieceFilters
  • Constructor Details

  • Method Details

    • accept

      @Deprecated(since="2021-06-11") public boolean accept(GamePiece piece)
      Deprecated.
      Description copied from interface: PieceFilter
      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
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece
      Returns:
      true if piece match filter
    • accept

      public boolean accept(GamePiece piece, Auditable owner, String fieldKey)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      fieldKey - EMesage key of the field holding the filter expression
      Returns:
    • accept

      public boolean accept(GamePiece piece, Auditable owner, AuditTrail audit)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter and provide Expression auditing facilities
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece to test
      owner - owner of the filter
      audit - Audit Trail to record evaluation of the filter
      Returns:
    • getFilter1

      public PieceFilter getFilter1()
    • getFilter2

      public PieceFilter getFilter2()