Class MaskUnion

All Implemented Interfaces:
Mask

public class MaskUnion extends MaskIntersection
Combines several masks and requires that one or more masks return true when a certain position is tested. It serves as a logical OR operation on a list of masks.
  • Constructor Details

    • MaskUnion

      public MaskUnion(Collection<Mask> masks)
      Create a new union.
      Parameters:
      masks - a list of masks
    • MaskUnion

      public MaskUnion(Mask... mask)
      Create a new union.
      Parameters:
      mask - a list of masks
  • Method Details