Package com.ctc.wstx.sw
Class SimpleOutputElement.AttrName
- java.lang.Object
-
- com.ctc.wstx.sw.SimpleOutputElement.AttrName
-
- All Implemented Interfaces:
java.lang.Comparable<SimpleOutputElement.AttrName>
- Enclosing class:
- SimpleOutputElement
static final class SimpleOutputElement.AttrName extends java.lang.Object implements java.lang.Comparable<SimpleOutputElement.AttrName>
Simple key class used to represent two-piece (attribute) names; first part being optional (URI), and second non-optional (local name).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
mHashCode
Let's cache the hash code, since although hash calculation is fast, hash code is needed a lot as this is always used as a HashSet/TreeMap key.(package private) java.lang.String
mLocalName
(package private) java.lang.String
mNsURI
-
Constructor Summary
Constructors Constructor Description AttrName(java.lang.String nsURI, java.lang.String localName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(SimpleOutputElement.AttrName other)
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(SimpleOutputElement.AttrName other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SimpleOutputElement.AttrName>
-
-