Class CcUnitType
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CcUnitType
-
- All Implemented Interfaces:
Serializable,Enumerated
public class CcUnitType extends Object implements Serializable, Enumerated
Java class to represent the CcUnitType enumerated type. Documentation from the relevant specification: The CC-Unit-Type AVP (AVP Code 454) is of type Enumerated and specifies the type of units considered to be pooled into a credit pool.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int_INPUT_OCTETSstatic int_MONEYstatic int_OUTPUT_OCTETSstatic int_SERVICE_SPECIFIC_UNITSstatic int_TIMEstatic int_TOTAL_OCTETSstatic CcUnitTypeINPUT_OCTETSstatic CcUnitTypeMONEYstatic CcUnitTypeOUTPUT_OCTETSstatic CcUnitTypeSERVICE_SPECIFIC_UNITSstatic CcUnitTypeTIMEstatic CcUnitTypeTOTAL_OCTETS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CcUnitTypefromInt(int type)intgetValue()Return the value of this instance of this enumerated type.StringtoString()
-
-
-
Field Detail
-
_TIME
public static final int _TIME
- See Also:
- Constant Field Values
-
_MONEY
public static final int _MONEY
- See Also:
- Constant Field Values
-
_TOTAL_OCTETS
public static final int _TOTAL_OCTETS
- See Also:
- Constant Field Values
-
_INPUT_OCTETS
public static final int _INPUT_OCTETS
- See Also:
- Constant Field Values
-
_OUTPUT_OCTETS
public static final int _OUTPUT_OCTETS
- See Also:
- Constant Field Values
-
_SERVICE_SPECIFIC_UNITS
public static final int _SERVICE_SPECIFIC_UNITS
- See Also:
- Constant Field Values
-
TIME
public static final CcUnitType TIME
-
MONEY
public static final CcUnitType MONEY
-
TOTAL_OCTETS
public static final CcUnitType TOTAL_OCTETS
-
INPUT_OCTETS
public static final CcUnitType INPUT_OCTETS
-
OUTPUT_OCTETS
public static final CcUnitType OUTPUT_OCTETS
-
SERVICE_SPECIFIC_UNITS
public static final CcUnitType SERVICE_SPECIFIC_UNITS
-
-
Method Detail
-
fromInt
public static CcUnitType fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:EnumeratedReturn the value of this instance of this enumerated type.- Specified by:
getValuein interfaceEnumerated- Returns:
- value
-
-