Package org.openhab.core.library.types
Enum Class OpenClosedType
- All Implemented Interfaces:
Serializable,Comparable<OpenClosedType>,Constable,Command,PrimitiveType,State,Type
@NonNullByDefault
public enum OpenClosedType
extends Enum<OpenClosedType>
implements PrimitiveType, State, Command
- Author:
- Kai Kreuzer - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription<T extends State>
@Nullable TConvert thisState's value into another typeFormats the value of this type according to a pattern (seeFormatter).Get a string representation that contains the whole internal representation of the type.toString()static OpenClosedTypeReturns the enum constant of this class with the specified name.static OpenClosedType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
-
CLOSED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
format
Description copied from interface:TypeFormats the value of this type according to a pattern (seeFormatter). -
toString
- Overrides:
toStringin classEnum<OpenClosedType>
-
toFullString
Description copied from interface:TypeGet a string representation that contains the whole internal representation of the type.The returned string could be consumed by the static 'valueOf(String)' method of the respective type to build a new type that is equal to this type.
- Specified by:
toFullStringin interfaceType- Returns:
- a full string representation of the type to be consumed by 'valueOf(String)'
-
as
Description copied from interface:StateConvert thisState's value into another type
-