View Javadoc

1   package net.sf.tacos.model;
2   
3   import java.io.Serializable;
4   
5   /**
6    * An interface for converting an object to a serializable key and back.
7    * 
8    * @author phraktle
9    */
10  public interface IKeyProvider {
11  
12      /**
13       * Gets the key for a particular value
14       * @param value
15       * @return
16       */
17      public Serializable getKey(Object value);
18  
19  }