Interface Filter<T extends @Nullable Object>

Type Parameters:
T - the type of arguments to accept(T)

public interface Filter<T extends @Nullable Object>
Interface for things that make boolean decisions. This is inspired by java.io.FilenameFilter.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(T o)
    Tests whether a specified Object satisfies the filter.
  • Method Details

    • accept

      boolean accept(T o)
      Tests whether a specified Object satisfies the filter.
      Parameters:
      o - the object to test
      Returns:
      whether the object satisfies the filter