Class InternalBindingKey
- java.lang.Object
-
- com.sun.corba.ee.impl.naming.cosnaming.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 Summary
Fields Modifier and Type Field Description private int
hashVal
private int
idLen
private int
kindLen
NameComponent
name
-
Constructor Summary
Constructors Constructor Description InternalBindingKey()
InternalBindingKey(NameComponent n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
protected void
setup(NameComponent n)
-
-
-
Field Detail
-
name
public NameComponent name
-
idLen
private int idLen
-
kindLen
private int kindLen
-
hashVal
private int hashVal
-
-
Constructor Detail
-
InternalBindingKey
public InternalBindingKey()
-
InternalBindingKey
public InternalBindingKey(NameComponent n)
-
-
Method Detail
-
setup
protected void setup(NameComponent n)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-