fr.paris5.shaman.system
Class SystemDirectory.ServerKey
java.lang.Object
|
+--fr.paris5.shaman.system.SystemDirectory.ServerKey
- Enclosing class:
- SystemDirectory
- public static class SystemDirectory.ServerKey
- extends java.lang.Object
Enumeration of Shaman servers. A class has been defined instead of
some String constants for taking advantage of typing.
hashCode() method has been redefined, because the
"unique-instance" static constants may not be so unique with
class reloading (e.g. JUnit).
Method Summary |
boolean |
equals(java.lang.Object obj)
Needs to override : if compared with an instance whose class
was instantiated from another ClassLoader, singleton constants may not
be equal anymore. |
static SystemDirectory.ServerKey |
get(java.lang.String name)
|
java.lang.String |
getName()
|
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
name
private final java.lang.String name
SPIRIT_SERVER_KEY
public static final SystemDirectory.ServerKey SPIRIT_SERVER_KEY
LEGEND_SERVER_KEY
public static final SystemDirectory.ServerKey LEGEND_SERVER_KEY
INSIGHT_SERVER_KEY
public static final SystemDirectory.ServerKey INSIGHT_SERVER_KEY
SERVER_KEYS
private static final SystemDirectory.ServerKey[] SERVER_KEYS
SystemDirectory.ServerKey
private SystemDirectory.ServerKey(java.lang.String name)
getName
public java.lang.String getName()
equals
public boolean equals(java.lang.Object obj)
- Needs to override : if compared with an instance whose class
was instantiated from another ClassLoader, singleton constants may not
be equal anymore.
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
- - Returns:
-
get
public static SystemDirectory.ServerKey get(java.lang.String name)
Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.