Interface BitField.BitVisitor

Enclosing class:
BitField
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BitField.BitVisitor
A visitor of bits on a 2D plane.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    visitBit(int x, int y, boolean bit)
    Visit a specific bit.
  • Method Details

    • visitBit

      boolean visitBit(int x, int y, boolean bit)
      Visit a specific bit.
      Parameters:
      x - The X coordinate of the bit on the 2D plane.
      y - The Y coordinate of the bit on the 2D plane.
      bit - Whether the bit is set.
      Returns:
      Should return true to indicate that processing should continue, or false to indicate that processing may be aborted.