Package org.drools.games.pong
Enum CollisionType
- java.lang.Object
-
- java.lang.Enum<CollisionType>
-
- org.drools.games.pong.CollisionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CollisionType>
public enum CollisionType extends java.lang.Enum<CollisionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BatBottomBatLowerBatMiddleBatTopBatUpperSideLineBottomSideLineTop
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CollisionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CollisionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SideLineTop
public static final CollisionType SideLineTop
-
SideLineBottom
public static final CollisionType SideLineBottom
-
BatUpper
public static final CollisionType BatUpper
-
BatMiddle
public static final CollisionType BatMiddle
-
BatLower
public static final CollisionType BatLower
-
BatTop
public static final CollisionType BatTop
-
BatBottom
public static final CollisionType BatBottom
-
-
Method Detail
-
values
public static CollisionType[] 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 (CollisionType c : CollisionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollisionType 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
-
-