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_OCTETS
static int
_MONEY
static int
_OUTPUT_OCTETS
static int
_SERVICE_SPECIFIC_UNITS
static int
_TIME
static int
_TOTAL_OCTETS
static CcUnitType
INPUT_OCTETS
static CcUnitType
MONEY
static CcUnitType
OUTPUT_OCTETS
static CcUnitType
SERVICE_SPECIFIC_UNITS
static CcUnitType
TIME
static CcUnitType
TOTAL_OCTETS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CcUnitType
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
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:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-