Class InternalBindingKey


  • public class InternalBindingKey
    extends java.lang.Object
    Class InternalBindingKey implements the necessary wrapper code around the org.omg.CosNaming::NameComponent class to implement the proper equals() method and the hashCode() method for use in a hash table. It computes the hashCode once and stores it, and also precomputes the lengths of the id and kind strings for faster comparison.
    • Field Detail

      • idLen

        private int idLen
      • kindLen

        private int kindLen
      • hashVal

        private int hashVal
    • Constructor Detail

      • InternalBindingKey

        public InternalBindingKey()
      • InternalBindingKey

        public InternalBindingKey​(NameComponent n)
    • Method Detail

      • equals

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

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