Class StateTool

java.lang.Object
org.apache.arrow.vector.complex.StateTool

public class StateTool extends Object
Utility methods for state machines based on enums.
  • Method Details

    • check

      public static <T extends Enum<?>> void check(T currentState, T... expectedStates)
      Verifies currentState is in one of expectedStates, throws an IllegalArgumentException if it isn't.