|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectworld.MeanOfTransportation
A mean of transportation.
Field Summary | |
static int |
AIRPLANE
An airplane. |
static int |
BUS
A bus. |
static int |
SHIP
A ship. |
static int |
TAXI
A taxi. |
static int |
TRAIN
A train. |
static int |
WALK
A walk. |
Constructor Summary | |
MeanOfTransportation()
|
Method Summary | |
static int |
GetMeanOfTransportationCode(java.lang.String meanOfTransportation)
Gets a mean of transportation basing on the given name. |
static java.lang.String |
GetMeanOfTransportationString(int meanOfTransportation)
Gets a string with the name of the given mean of transportation. |
static boolean |
IsValidMeanOfTransportation(int meanOfTransportation)
Checks whether the given mean of transportation is a valid one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AIRPLANE
public static final int TRAIN
public static final int BUS
public static final int SHIP
public static final int TAXI
public static final int WALK
Constructor Detail |
public MeanOfTransportation()
Method Detail |
public static boolean IsValidMeanOfTransportation(int meanOfTransportation)
meanOfTransportation
- A value to be tested.
public static int GetMeanOfTransportationCode(java.lang.String meanOfTransportation)
meanOfTransportation
- A name of a mean of transportation to get code for.
public static java.lang.String GetMeanOfTransportationString(int meanOfTransportation)
meanOfTransportation
- A mean of transportation to get the name for.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |