net.ctdp.rfdynhud.gamedata
Enum SessionType
java.lang.Object
java.lang.Enum<SessionType>
net.ctdp.rfdynhud.gamedata.SessionType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<SessionType>
public enum SessionType
- extends java.lang.Enum<SessionType>
- Author:
- Marvin Froehlich (CTDP)
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TEST_DAY
public static final SessionType TEST_DAY
PRACTICE1
public static final SessionType PRACTICE1
PRACTICE2
public static final SessionType PRACTICE2
PRACTICE3
public static final SessionType PRACTICE3
PRACTICE4
public static final SessionType PRACTICE4
QUALIFYING1
public static final SessionType QUALIFYING1
QUALIFYING2
public static final SessionType QUALIFYING2
QUALIFYING3
public static final SessionType QUALIFYING3
QUALIFYING4
public static final SessionType QUALIFYING4
WARMUP
public static final SessionType WARMUP
RACE1
public static final SessionType RACE1
RACE2
public static final SessionType RACE2
RACE3
public static final SessionType RACE3
RACE4
public static final SessionType RACE4
PRACTICE_WILDCARD
public static final java.lang.String PRACTICE_WILDCARD
- See Also:
- Constant Field Values
QUALIFYING_WILDCARD
public static final java.lang.String QUALIFYING_WILDCARD
- See Also:
- Constant Field Values
RACE_WILDCARD
public static final java.lang.String RACE_WILDCARD
- See Also:
- Constant Field Values
values
public static SessionType[] 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 (SessionType c : SessionType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SessionType 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 name
java.lang.NullPointerException
- if the argument is null
isTestDay
public final boolean isTestDay()
isPractice
public final boolean isPractice()
isQualifying
public final boolean isQualifying()
isRace
public final boolean isRace()