net.java.slee.resource.diameter.cca.events.avp
Enum CcUnitType
java.lang.Object
java.lang.Enum<CcUnitType>
net.java.slee.resource.diameter.cca.events.avp.CcUnitType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CcUnitType>, net.java.slee.resource.diameter.base.events.avp.Enumerated
public enum CcUnitType
- extends java.lang.Enum<CcUnitType>
- implements net.java.slee.resource.diameter.base.events.avp.Enumerated
8.32. CC-Unit-Type AVP
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.
The following values are defined for the CC-Unit-Type AVP:
TIME 0
MONEY 1
TOTAL-OCTETS 2
INPUT-OCTETS 3
OUTPUT-OCTETS 4
SERVICE-SPECIFIC-UNITS 5
- Author:
- Bartosz Baranowski , Alexandre Mendonca
|
Method Summary |
static CcUnitType |
fromInt(int presumableValue)
|
int |
getValue()
|
java.lang.String |
toString()
|
static CcUnitType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CcUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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
values
public static CcUnitType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CcUnitType c : CcUnitType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CcUnitType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
fromInt
public static CcUnitType fromInt(int presumableValue)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<CcUnitType>
getValue
public int getValue()
- Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated
Copyright © 2012. All Rights Reserved.