net.sf.tacos.model
Class IdentityKeyProvider
java.lang.Object
net.sf.tacos.model.IdentityKeyProvider
- All Implemented Interfaces:
- IKeyProvider
public class IdentityKeyProvider
- extends Object
- implements IKeyProvider
Default IKeyProvider implementation that uses the object's identity hash.
This only works if the object instances are the same across requests (ie.
static).
- Author:
- phraktle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityKeyProvider
public IdentityKeyProvider()
getKey
public Serializable getKey(Object value)
- Gets the key for a particular value
- Specified by:
getKey
in interface IKeyProvider
- Returns:
Copyright © 2006-2007 SourceForge.net. All Rights Reserved.