- java.lang.Object
-
- ch.bind.philib.cache.LineCache<K,V>
-
-
Field Summary
-
Fields inherited from interface ch.bind.philib.cache.Cache
DEFAULT_CAPACITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()voidclear()Remove all elements from the cache.Vget(K key)Query a value from the cache by its key.voidremove(K key)Remove a key-value-pair from the cache.voidset(K key, V value)Sets a key-value-pair to the cache.
-
-
-
Method Detail
-
set
public void set(K key, V value)
Description copied from interface:CacheSets a key-value-pair to the cache.
-
get
public V get(K key)
Description copied from interface:CacheQuery a value from the cache by its key.
-
remove
public void remove(K key)
Description copied from interface:CacheRemove a key-value-pair from the cache.
-
capacity
public int capacity()
-
-