Package com.storedobject.svg
Enum Class Direction
- All Implemented Interfaces:
Serializable,Comparable<Direction>,Constable
Represents the four cardinal directions: UP, DOWN, LEFT, and RIGHT.
This enum can be used to define or represent movement, orientation, or navigation in a two-dimensional context.
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the DOWN cardinal direction in a two-dimensional context.Represents the LEFT cardinal direction in a two-dimensional context.Represents the RIGHT cardinal direction in a two-dimensional context.Represents the UP cardinal direction in a two-dimensional context. -
Method Summary
-
Enum Constant Details
-
Up
Represents the UP cardinal direction in a two-dimensional context. Typically used to indicate upward movement, orientation, or navigation. -
Down
Represents the DOWN cardinal direction in a two-dimensional context. Typically used to indicate downward movement, orientation, or navigation. -
Left
Represents the LEFT cardinal direction in a two-dimensional context. Typically used to indicate leftward movement, orientation, or navigation. -
Right
Represents the RIGHT cardinal direction in a two-dimensional context. Typically used to indicate rightward movement, orientation, or navigation.
-
-
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
-