Package org.openstack4j.model.telemetry
Enum Meter.Type
- java.lang.Object
-
- java.lang.Enum<Meter.Type>
-
- org.openstack4j.model.telemetry.Meter.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Meter.Type>
- Enclosing interface:
- Meter
public static enum Meter.Type extends Enum<Meter.Type>
The Meter Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUMULATIVEDELTAGAUGEUNRECOGNIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Meter.TypefromValue(String type)StringtoString()Stringvalue()static Meter.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Meter.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GAUGE
public static final Meter.Type GAUGE
-
DELTA
public static final Meter.Type DELTA
-
CUMULATIVE
public static final Meter.Type CUMULATIVE
-
UNRECOGNIZED
public static final Meter.Type UNRECOGNIZED
-
-
Method Detail
-
values
public static Meter.Type[] 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 (Meter.Type c : Meter.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Meter.Type valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromValue
public static Meter.Type fromValue(String type)
-
value
public String value()
-
toString
public String toString()
- Overrides:
toStringin classEnum<Meter.Type>
-
-