All Packages This Package Class Hierarchy Class Search Index
Class calypso.util.Atom
java.lang.Object | +----calypso.util.Atom
Atom's are unique objects that you can use the object address to perform equality tests. This class accepts variants on String's to create the Atom's from.
public final class Atom extends java.lang.Object { // Fields 5 int fHashCode; String fString; private static final AtomTable gAtoms; private static int gNextAtomID; private static int gNoisyUsageCount; // Constructors 1 private Atom(String, int); // Methods 8 public static Atom Find(StringBuf); public static Atom Find(String); public static Atom ForObject(Object); public static Atom UniqueAtom(String); public boolean equals(Object); protected void finalize() throws Throwable; public int hashCode(); public String toString(); // Inner Classes 1 static final class AtomTable }
Fields
fString
String fString
fHashCode
int fHashCode
gAtoms
private static final AtomTable gAtoms
gNoisyUsageCount
private static int gNoisyUsageCount
gNextAtomID
private static int gNextAtomID
Constructors
Atom
private Atom(String aString, int aHashCode)
Private constructor used by static allocators.
Methods
toString
public String toString()
hashCode
public int hashCode()
equals
public boolean equals(Object aObject)
finalize
protected void finalize() throws Throwable
ForObject
public static Atom ForObject(Object aObject)
Find
public static Atom Find(String aString)
Find the atom for the given argument string. If the atom doesn't already exist then it is created.
Find
public static Atom Find(StringBuf aString)
Find the atom for the given argument string. If the atom doesn't already exist then it is created.
UniqueAtom
public static Atom UniqueAtom(String aPrefix)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4