Class 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)  
    • Field Detail

      • mNsURI

        final java.lang.String mNsURI
      • mLocalName

        final java.lang.String mLocalName
      • mHashCode

        final 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.
    • Constructor Detail

      • AttrName

        public AttrName​(java.lang.String nsURI,
                        java.lang.String localName)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object