Enum Rectangle2ai.Side
- java.lang.Object
-
- java.lang.Enum<Rectangle2ai.Side>
-
- org.arakhne.afc.math.geometry.d2.ai.Rectangle2ai.Side
-
- All Implemented Interfaces:
Serializable
,Comparable<Rectangle2ai.Side>
- Enclosing interface:
- Rectangle2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Rectangle2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
public static enum Rectangle2ai.Side extends Enum<Rectangle2ai.Side>
Sides of a rectangle.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Rectangle2ai.Side
valueOf(String name)
Returns the enum constant of this type with the specified name.static Rectangle2ai.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 Rectangle2ai.Side TOP
Top.
-
RIGHT
public static final Rectangle2ai.Side RIGHT
Right.
-
BOTTOM
public static final Rectangle2ai.Side BOTTOM
Bottom.
-
LEFT
public static final Rectangle2ai.Side LEFT
Left.
-
-
Method Detail
-
values
public static Rectangle2ai.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 (Rectangle2ai.Side c : Rectangle2ai.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 Rectangle2ai.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
-
-