Package org.apache.iotdb.metrics.utils
Enum SystemType
- java.lang.Object
-
- java.lang.Enum<SystemType>
-
- org.apache.iotdb.metrics.utils.SystemType
-
- All Implemented Interfaces:
Serializable,Comparable<SystemType>
public enum SystemType extends Enum<SystemType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemTypegetSystemType()StringtoString()static SystemTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SystemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WINDOWS
public static final SystemType WINDOWS
-
LINUX
public static final SystemType LINUX
-
MAC
public static final SystemType MAC
-
OTHER
public static final SystemType OTHER
-
-
Method Detail
-
values
public static SystemType[] 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 (SystemType c : SystemType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemType 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
-
getSystemType
public static SystemType getSystemType()
-
toString
public String toString()
- Overrides:
toStringin classEnum<SystemType>
-
-