Interface StringOption.Filter

All Known Implementing Classes:
FileOption.FileFilter
Enclosing class:
StringOption
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 static interface StringOption.Filter
Acceptance filter for StringOption instances.
  • Method Summary

    Modifier and Type Method Description
    boolean accept​(String arg)
    Determines whether the specified argument should be accepted for use by the host StringOption instance.
  • Method Details

    • accept

      boolean accept​(String arg)
      Determines whether the specified argument should be accepted for use by the host StringOption instance.
      Parameters:
      arg - string argument to assess for acceptance
      Returns:
      true if the argument should be accepted, false otherwise