All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class hplb.xml.Atom

java.lang.Object
   |
   +----hplb.xml.Atom

public final class Atom
extends Object
This class is responsible for maintaining strings as atoms, i.e. if two strings returned by getAtom() are equal in the sense of String.equal() then they are in fact the same Object. This is used to "intern" element and attribute names which can then be compared using the more efficient reference equality, a la "s1==s2".

Author:
Anders Kristensen

Constructor Index

 o Atom()

Method Index

 o getAtom(String)
Return an atom corresponding to the argument.

Constructors

 o Atom
 public Atom()

Methods

 o getAtom
 public static String getAtom(String s)
Return an atom corresponding to the argument.


All Packages  Class Hierarchy  This Package  Previous  Next  Index