Class TypeSwitch.Never

java.lang.Object
com.hivemq.client.util.TypeSwitch.Never
All Implemented Interfaces:
TypeSwitch<Object>
Enclosing interface:
TypeSwitch<T>

public static class TypeSwitch.Never extends Object implements TypeSwitch<Object>
  • Method Details

    • is

      Description copied from interface: TypeSwitch
      Checks 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:
      is in interface TypeSwitch<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.