org.drools.games.pong
Enum CollisionType
java.lang.Object
java.lang.Enum<CollisionType>
org.drools.games.pong.CollisionType
- All Implemented Interfaces:
- Serializable, Comparable<CollisionType>
public enum CollisionType
- extends Enum<CollisionType>
Method Summary |
static CollisionType |
valueOf(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. |
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
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(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 name
NullPointerException
- if the argument is null
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.