Package com.hivemq.client.util
Class TypeSwitch.Never
java.lang.Object
com.hivemq.client.util.TypeSwitch.Never
- All Implemented Interfaces:
TypeSwitch<Object>
- Enclosing interface:
TypeSwitch<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hivemq.client.util.TypeSwitch
TypeSwitch.Default<T>, TypeSwitch.Never -
Method Summary
-
Method Details
-
is
@NotNull public <I> @NotNull TypeSwitch.Never is(@NotNull @NotNull Class<I> type, @NotNull @NotNull Consumer<I> consumer) Description copied from interface:TypeSwitchChecks if the object that is switched over is of a given type and if so executes a callback.If the type matches the returned TypeSwitch will not match any further type.
- Specified by:
isin interfaceTypeSwitch<Object>- Type Parameters:
I- the type to check- Parameters:
type- the class of the type to check.consumer- the callback to execute if the type matches.- Returns:
- the TypeSwitch object.
-