org.eclipse.osgi.framework.util
Interface KeyedElement

All Known Subinterfaces:
StorageHook

public interface KeyedElement

An element of an KeyedHashSet. A KeyedElement privides the key which is used to hash the elements in an KeyedHashSet.

Since:
3.2
See Also:
KeyedHashSet

Method Summary
 boolean compare(KeyedElement other)
          Compares this element with a specified element
 java.lang.Object getKey()
          Returns the key for this element
 int getKeyHashCode()
          Returns the hash code of the key
 

Method Detail

getKeyHashCode

int getKeyHashCode()
Returns the hash code of the key

Returns:
the hash code of the key

compare

boolean compare(KeyedElement other)
Compares this element with a specified element

Parameters:
other - the element to compare with
Returns:
returns true if the specified element equals this element

getKey

java.lang.Object getKey()
Returns the key for this element

Returns:
the key for this element