001 package biz.hammurapi.cache; 002 003 /** 004 * Key, which knows how to produce corresponding value if it is not cached. 005 * Implementations shall also properly imlement equals() and hashCode(). 006 * @author Pavel 007 */ 008 public interface ProducingKey { 009 010 /** 011 * Produces value for the key. 012 * @return 013 */ 014 Entry get(); 015 016 }