1 17 18 package org.apache.avalon.fortress.impl.lookup; 19 20 24 final class ComponentKey 25 { 26 private final Object m_component; 27 28 public ComponentKey( final Object component ) 29 { 30 m_component = component; 31 } 32 33 public boolean equals( final Object other ) 34 { 35 return ( other instanceof ComponentKey ) && 36 ( (ComponentKey) other ).m_component == m_component; 37 } 38 39 public int hashCode() 40 { 41 return System.identityHashCode(m_component); 42 } 43 } 44 | Popular Tags |