The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback
Class calypso.util.Atom
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

Copyright © 1998-1999 The Mozilla Organization.