Package org.pepsoft.util
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.
A visitor of bits on a 2D plane.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvisitBit(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
trueto indicate that processing should continue, orfalseto indicate that processing may be aborted.
-