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.

@FunctionalInterface public interface PiecePredicate
Function that checks whether a piece is supposed to be created by a given character.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(char c, FilePointer ptr)
    Check whether a character should create a piece.
  • Method Details

    • apply

      boolean apply(char c, FilePointer ptr)
      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 PieceSupplier will be called).