org.eclipse.internal.xtend.util
Class Cache<K,V>

java.lang.Object
  extended by org.eclipse.internal.xtend.util.Cache<K,V>

public abstract class Cache<K,V>
extends java.lang.Object


Field Summary
protected  java.util.Map<K,V> internal
           
 
Constructor Summary
Cache()
           
 
Method Summary
 void clear()
          Clears the cache.
protected abstract  V createNew(K arg0)
           
 V get(K key)
           
 java.util.Collection<V> getValues()
           
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internal

protected java.util.Map<K,V> internal
Constructor Detail

Cache

public Cache()
Method Detail

createNew

protected abstract V createNew(K arg0)

get

public V get(K key)

getValues

public java.util.Collection<V> getValues()

clear

public void clear()
Clears the cache.

Since:
4.2

isEmpty

public boolean isEmpty()
Returns:
See Also:
Map.isEmpty()