Package org.exbin.bined.color
Enum BasicCodeAreaDecorationColorType
- java.lang.Object
-
- java.lang.Enum<BasicCodeAreaDecorationColorType>
-
- org.exbin.bined.color.BasicCodeAreaDecorationColorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BasicCodeAreaDecorationColorType>
,CodeAreaColorType
@ParametersAreNonnullByDefault public enum BasicCodeAreaDecorationColorType extends java.lang.Enum<BasicCodeAreaDecorationColorType> implements CodeAreaColorType
Enumeration of unprintable color types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LINE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CodeAreaColorGroup>
getGroup()
Returns group which this color belongs to or empty.java.lang.String
getId()
Returns unique string identifier.static BasicCodeAreaDecorationColorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BasicCodeAreaDecorationColorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINE
public static final BasicCodeAreaDecorationColorType LINE
-
-
Method Detail
-
values
public static BasicCodeAreaDecorationColorType[] 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 (BasicCodeAreaDecorationColorType c : BasicCodeAreaDecorationColorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicCodeAreaDecorationColorType 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
-
getId
@Nonnull public java.lang.String getId()
Description copied from interface:CodeAreaColorType
Returns unique string identifier. Custom implementations should start with full package name to avoid collisions.- Specified by:
getId
in interfaceCodeAreaColorType
- Returns:
- unique identification ID key
-
getGroup
@Nonnull public java.util.Optional<CodeAreaColorGroup> getGroup()
Description copied from interface:CodeAreaColorType
Returns group which this color belongs to or empty.- Specified by:
getGroup
in interfaceCodeAreaColorType
- Returns:
- group
-
-