Package space.maxus.flare.util
Class SafeComputable.Wrapper<I,O>
java.lang.Object
space.maxus.flare.util.SafeComputable.Wrapper<I,O>
- All Implemented Interfaces:
org.apache.commons.lang3.concurrent.Computable<I,,O> SafeComputable<I,O>
- Enclosing interface:
- SafeComputable<I,
O>
-
Nested Class Summary
Nested classes/interfaces inherited from interface space.maxus.flare.util.SafeComputable
SafeComputable.ComputeInterruptionException, SafeComputable.Wrapper<I,O> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()safeCompute(I input) Safely computes the input, handling any errors inside itself, only throwing aSafeComputable.ComputeInterruptionExceptionif the thread is interruptedtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface space.maxus.flare.util.SafeComputable
compute
-
Constructor Details
-
Wrapper
-
-
Method Details
-
safeCompute
Description copied from interface:SafeComputableSafely computes the input, handling any errors inside itself, only throwing aSafeComputable.ComputeInterruptionExceptionif the thread is interrupted- Specified by:
safeComputein interfaceSafeComputable<I,O> - Parameters:
input- Input value- Returns:
- Output value
-
getComputable
-
equals
-
hashCode
public int hashCode() -
toString
-