api/jar/src/main/java/javax/slee/management/SleeState.java
public static SleeState fromInt(int state) throws IllegalArgumentException {
        switch (state) {
            case SLEE_STOPPED: return STOPPED;
            case SLEE_STARTING: return STARTING;
            case SLEE_RUNNING: return RUNNING;
            case SLEE_STOPPING: return STOPPING;
            default: throw new IllegalArgumentException("Invalid state: " + state);
        }
    }
public static SleeState fromInt(int state) throws IllegalArgumentException {
        switch (state) {
            case SLEE_STOPPED: return STOPPED;
            case SLEE_STARTING: return STARTING;
            case SLEE_RUNNING: return RUNNING;
            case SLEE_STOPPING: return STOPPING;
            default: throw new IllegalArgumentException("Invalid state: " + state);
        }
    }
public static SleeState fromInt ( int state ) throws IllegalArgumentException { switch ( state ) { case SLEE_STOPPED : return STOPPED ; case SLEE_STARTING : return STARTING ; case SLEE_RUNNING : return RUNNING ; case SLEE_STOPPING : return STOPPING ; default : throw new IllegalArgumentException ( "Invalid state: " + state ) ; } }
Get a <code>SleeState</code> object from an integer value.
@param state the state as an integer.
@return a <code>SleeState</code> object corresponding to <code>state</code>.
@throws IllegalArgumentException if <code>state</code> is not a valid SLEE
state value.
Get a <code > SleeState< / code > object from an integer value .