com.phoenixst.collections
public class Identifier extends Object implements Serializable
Object with a Identifier value set by the constructor. Instances of this class
can be used instead of Strings for map and registry
keys. The reason for doing so is that this class uses reference
equality for .equals() semantics, so that multiple
users can use the same registry without fear of duplicating
someone else's key. Instances can also simply be used where it's
helpful to have human readable toString() values for
otherwise non-functional objects when Strings can't
be used for some reason.
Since: 1.0
Version: $Revision: 1.5 $
| Constructor Summary | |
|---|---|
| Identifier(String name)
Creates a new Identifier with the specified
Identifier value. | |
| Method Summary | |
|---|---|
| String | toString() |
Identifier with the specified
Identifier value.