Interface PieceSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function that converts a character into a matching piece.
-
Method Summary
Modifier and TypeMethodDescriptionapply(char c, FilePointer ptr) Apply function to character at a position.
-
Method Details
-
apply
Apply function to character at a position.- Parameters:
c- Character to get piece for.ptr- Character position in file.- Returns:
- Created piece or null to cancel.
-