Package org.cactoos
Class Fallback.None<X>
- java.lang.Object
-
- org.cactoos.Fallback.None<X>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cactoos.Fallback
Fallback.From<T>, Fallback.None<X>
-
-
Constructor Summary
Constructors Constructor Description None()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X
apply(Throwable input)
Apply it.int
support(Throwable exception)
Calculate level of support of the given exception type.
-
-
-
Method Detail
-
support
public int support(Throwable exception)
Description copied from interface:Fallback
Calculate level of support of the given exception type.- Specified by:
support
in interfaceFallback<X>
- Parameters:
exception
- Exception- Returns:
- Level of support: greater or equals to 0 if the target
is supported and
Integer.MIN_VALUE
otherwise
-
-