Commit 71fef033 authored by jcechace's avatar jcechace
Browse files

Added missing javadoc in assignment

parent 3b5e6878
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3,13 +3,16 @@ package cz.muni.fi.pb162.hw02;
/**
 * Cache interface
 * @author Jakub Cechacek
 *
 * @param <K> Key type
 * @param <V> Value type
 */
public interface Cache<K, V> {

    /**
     * Retrieves object from cache
     * @param key key under which the object is stored
     * @return
     * @return object stored under given key
     */
    V get(K key);

+11 −1
Original line number Diff line number Diff line
package cz.muni.fi.pb162.hw02;

/**
 *
 * Interface for cache factories
 * @author Jakub Cechacek
 *
 * @param <K> Key type
 * @param <V> Value type
 */
public interface CacheFactory<K, V> {

    /**
     * Creates an instance of a cache
     * @param type type of the cache
     * @param size size of the cache
     * @return cache
     */
    Cache<K, V> create(CacheType type, int size);
}