|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.gjt.universe.WormholeList
The this class handles look-up of specific wormholes by their unique ID.
| Field Summary | |
private static DBTable |
DB
|
| Constructor Summary | |
private |
WormholeList()
This is declared privates as no actual instance of this class is ever created. |
| Method Summary | |
static void |
add(Wormhole obj)
This method adds the given wormhole to the master list of those available in the game. |
static java.util.Enumeration |
elements()
This method returns an enumeration of all wormholes currently in the game. |
static Wormhole |
get(WormholeID id)
This method returns the wormhole with the given ID. |
(package private) static void |
readObject(java.io.ObjectInputStream in)
This method takes the list of wormholes stored in the given stream (previously written using writeObject) as the current list of those available in the game. |
static Wormhole |
remove(WormholeID id)
This method removes the given wormhole from the master list of those available in the game. |
static int |
size()
This method returns the number of wormholes in the game. |
(package private) static void |
writeObject(java.io.ObjectOutputStream out)
This method adds the current list of wormholes to the given stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static DBTable DB
| Constructor Detail |
private WormholeList()
| Method Detail |
public static void add(Wormhole obj)
obj - The wormhole to be added.public static Wormhole remove(WormholeID id)
public static Wormhole get(WormholeID id)
id - The unique ID of the desired wormhole object.class.public static int size()
static void writeObject(java.io.ObjectOutputStream out)
throws java.io.IOException
java.io.IOExceptionreadObject
static void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionwriteObjectpublic static java.util.Enumeration elements()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||