public class StateTool extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<?>> |
check(T currentState,
T... expectedStates)
Verifies
currentState is in one of expectedStates,
throws an IllegalArgumentException if it isn't. |
public static <T extends Enum<?>> void check(T currentState, T... expectedStates)
currentState is in one of expectedStates,
throws an IllegalArgumentException if it isn't.Copyright © 2024 The Apache Software Foundation. All rights reserved.