org.codehaus.jackson.sym
Class Name

java.lang.Object
  extended by org.codehaus.jackson.sym.Name
Direct Known Subclasses:
Name1, Name2, Name3, NameN

public abstract class Name
extends Object

Base class for tokenized names (key strings in objects) that have been tokenized from byte-based input sources (like InputStream.

Author:
Tatu Saloranta

Field Summary
protected  int mHashCode
           
protected  String mName
           
 
Constructor Summary
protected Name(String name, int hashCode)
           
 
Method Summary
abstract  boolean equals(int quad1)
           
abstract  boolean equals(int[] quads, int qlen)
           
abstract  boolean equals(int quad1, int quad2)
           
 boolean equals(Object o)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mName

protected final String mName

mHashCode

protected final int mHashCode
Constructor Detail

Name

protected Name(String name,
               int hashCode)
Method Detail

getName

public String getName()

equals

public abstract boolean equals(int quad1)

equals

public abstract boolean equals(int quad1,
                               int quad2)

equals

public abstract boolean equals(int[] quads,
                               int qlen)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

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