org.apache.commons.pipeline.util
Class KeyFactory.HashKeyFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyFactory.HashKeyFactory
public KeyFactory.HashKeyFactory()
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.