api/jar/src/main/java/javax/slee/AddressPresentation.java
public static AddressPresentation fromInt(int value) throws IllegalArgumentException {
        switch (value) {
            case ADDRESS_PRESENTATION_UNDEFINED: return UNDEFINED;
            case ADDRESS_PRESENTATION_ALLOWED: return ALLOWED;
            case ADDRESS_PRESENTATION_RESTRICTED: return RESTRICTED;
            case ADDRESS_PRESENTATION_ADDRESS_NOT_AVAILABLE: return ADDRESS_NOT_AVAILABLE;
            default: throw new IllegalArgumentException("Invalid value: " + value);
        }
    }
public static AddressPresentation fromInt(int value) throws IllegalArgumentException {
        switch (value) {
            case ADDRESS_PRESENTATION_UNDEFINED: return UNDEFINED;
            case ADDRESS_PRESENTATION_ALLOWED: return ALLOWED;
            case ADDRESS_PRESENTATION_RESTRICTED: return RESTRICTED;
            case ADDRESS_PRESENTATION_ADDRESS_NOT_AVAILABLE: return ADDRESS_NOT_AVAILABLE;
            default: throw new IllegalArgumentException("Invalid value: " + value);
        }
    }
Get an <code>AddressPresentation</code> object from an integer value.
@param value the address presentation value as an integer.
@return an <code>AddressPresentation</code> object corresponding to <code>value</code>.
@throws IllegalArgumentException if <code>value</code> is not a valid
address presentation value.