api/jar/src/main/java/javax/slee/management/ResourceAdaptorEntityState.java
public static ResourceAdaptorEntityState fromInt(int state) throws IllegalArgumentException {
        switch (state) {
            case ENTITY_INACTIVE: return INACTIVE;
            case ENTITY_ACTIVE: return ACTIVE;
            case ENTITY_STOPPING: return STOPPING;
            default: throw new IllegalArgumentException("Invalid state: " + state);
        }
    }
public static ResourceAdaptorEntityState fromInt(int state) throws IllegalArgumentException {
        switch (state) {
            case ENTITY_INACTIVE: return INACTIVE;
            case ENTITY_ACTIVE: return ACTIVE;
            case ENTITY_STOPPING: return STOPPING;
            default: throw new IllegalArgumentException("Invalid state: " + state);
        }
    }
public static ResourceAdaptorEntityState fromInt ( int state ) throws IllegalArgumentException { switch ( state ) { case ENTITY_INACTIVE : return INACTIVE ; case ENTITY_ACTIVE : return ACTIVE ; case ENTITY_STOPPING : return STOPPING ; default : throw new IllegalArgumentException ( "Invalid state: " + state ) ; } }
Get a <code>ResourceAdaptorEntityState</code> object from an integer value.
@param state the state as an integer.
@return a <code>ResourceAdaptorEntityState</code> object corresponding to <code>state</code>.
@throws IllegalArgumentException if <code>state</code> is not a valid resource
adaptor entity state value.
Get a <code > ResourceAdaptorEntityState< / code > object from an integer value .