Enum ClassificationEnum
- java.lang.Object
-
- java.lang.Enum<ClassificationEnum>
-
- cz.cvut.fel.omo.SmartHome.devices.ClassificationEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClassificationEnum>
public enum ClassificationEnum extends java.lang.Enum<ClassificationEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION
ACTION_PET
EATING_PERSON
EATING_PET
SPORT
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassificationEnum()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassificationEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClassificationEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPORT
public static final ClassificationEnum SPORT
-
ACTION
public static final ClassificationEnum ACTION
-
EATING_PET
public static final ClassificationEnum EATING_PET
-
ACTION_PET
public static final ClassificationEnum ACTION_PET
-
EATING_PERSON
public static final ClassificationEnum EATING_PERSON
-
-
Method Detail
-
values
public static ClassificationEnum[] 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 (ClassificationEnum c : ClassificationEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassificationEnum 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 namejava.lang.NullPointerException
- if the argument is null
-
-