-
- 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 forStringOptioninstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(String arg)Determines whether the specified argument should be accepted for use by the hostStringOptioninstance.
-
-
-
Method Detail
-
accept
boolean accept(String arg)
Determines whether the specified argument should be accepted for use by the hostStringOptioninstance.- Parameters:
arg- string argument to assess for acceptance- Returns:
- true if the argument should be accepted, false otherwise
-
-