org.apache.commons.pipeline.util
Class KeyFactory.HashKeyFactory

java.lang.Object
  extended by org.apache.commons.pipeline.util.KeyFactory.HashKeyFactory
All Implemented Interfaces:
KeyFactory<Object,Integer>
Enclosing interface:
KeyFactory<T,K>

public static class KeyFactory.HashKeyFactory
extends Object
implements KeyFactory<Object,Integer>

Trivial key factory that produces the object's hash code as a key.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.pipeline.util.KeyFactory
KeyFactory.HashKeyFactory
 
Constructor Summary
KeyFactory.HashKeyFactory()
           
 
Method Summary
 Integer generateKey(Object source)
          Generates a unique identifier of type K for an object of type T.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFactory.HashKeyFactory

public KeyFactory.HashKeyFactory()
Method Detail

generateKey

public Integer generateKey(Object source)
Description copied from interface: KeyFactory
Generates a unique identifier of type K for an object of type T.

Specified by:
generateKey in interface KeyFactory<Object,Integer>
Returns:
the newly created identifier


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.