Interface IOVoidFunction
public interface IOVoidFunction
A simple (optional) function that may throw an
IOException. IndexOutOfBoundsException
is also considered as serializer parsers may throw that also.- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the function.static booleanoptional(IOVoidFunction func) Executesfuncbut consumesIOExceptionas execution is considered optional.
-
Method Details
-
execute
Executes the function.- Throws:
IOException- may be thrown but also caught inoptional(IOVoidFunction)IndexOutOfBoundsException- may be thrown but also caught inoptional(IOVoidFunction)
-
optional
Executesfuncbut consumesIOExceptionas execution is considered optional.- Parameters:
func- the function to execute- Returns:
truefor success withozt exception,falsefor failed with caught exception
-