|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Enumerated
Any enum value which implements this interface can be used as the value of an AVP of type INTEGER32, INTEGER64, or ENUMERATED. The #intValue() method will be called to obtain the actual AVP integer value. For example,
enum AuthSessionState implements Enumerated {
STATE_MAINTAINED, NO_STATE_MAINTAINED
public intValue() { return ordinal(); }
}
...
Avp = new Avp(Attribute.AUTH_SESSION_STATE,
AuthSessionState.STATE_MAINTAINED);
| Method Summary | |
|---|---|
int |
intValue()Returns the integer AVP value of this enumerated type. |
| Method Detail |
|---|
int intValue()
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.