Package cz.vutbr.fit.layout.model
Enum Border.Side
- java.lang.Object
-
- java.lang.Enum<Border.Side>
-
- cz.vutbr.fit.layout.model.Border.Side
-
- All Implemented Interfaces:
Serializable
,Comparable<Border.Side>
- Enclosing class:
- Border
public static enum Border.Side extends Enum<Border.Side>
Border side specification
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getIndex()
String
toString()
static Border.Side
valueOf(String name)
Returns the enum constant of this type with the specified name.static Border.Side[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP
public static final Border.Side TOP
-
LEFT
public static final Border.Side LEFT
-
BOTTOM
public static final Border.Side BOTTOM
-
RIGHT
public static final Border.Side RIGHT
-
-
Method Detail
-
values
public static Border.Side[] 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 (Border.Side c : Border.Side.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Border.Side 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
-
getIndex
public short getIndex()
-
toString
public String toString()
- Overrides:
toString
in classEnum<Border.Side>
-
-