Interface PiecePredicate
- 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 checks whether a piece is supposed to be created by a given character.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(char c, FilePointer ptr) Check whether a character should create a piece.
-
Method Details
-
apply
Check whether a character should create a piece.- Parameters:
c- Character to parse.ptr- Character position in file.- Returns:
- True if piece should be made (and associated
PieceSupplierwill be called).
-