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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • 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