You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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() 
Overrides:
toString in class Object


hashCode

   public int hashCode() 
Overrides:
hashCode in class Object


equals

   public boolean equals(Object aObject) 
Overrides:
equals in class Object


finalize

   protected void finalize()  throws Throwable
Overrides:
finalize in class Object


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  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4