Interface EntitySelector

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 EntitySelector
Implementing classes perform a test to determine if an Entity meets the selection criteria.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(Entity entity)
    Determine if the given Entity meets the selection criteria.
  • Method Details

    • accept

      boolean accept(Entity entity)
      Determine if the given Entity meets the selection criteria.
      Parameters:
      entity - the Entity being tested.
      Returns:
      true if the entity meets the criteria.