Class NoCache<K,V>
- java.lang.Object
-
- com.github.javaparser.symbolsolver.cache.NoCache<K,V>
-
- Type Parameters:
K- The key type.V- The value type.
- All Implemented Interfaces:
com.github.javaparser.resolution.cache.Cache<K,V>
public class NoCache<K,V> extends Object implements com.github.javaparser.resolution.cache.Cache<K,V>
A cache implementation that does not store any information.
-
-
Constructor Summary
Constructors Constructor Description NoCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(K key)static <expectedK,expectedV>
NoCache<expectedK,expectedV>create()Create a new instance.Optional<V>get(K key)booleanisEmpty()voidput(K key, V value)voidremove(K key)voidremoveAll()longsize()com.github.javaparser.resolution.cache.CacheStatsstats()
-
-
-
Method Detail
-
create
public static <expectedK,expectedV> NoCache<expectedK,expectedV> create()
Create a new instance.- Type Parameters:
expectedK- The expected type for the key.expectedV- The expected type for the value.- Returns:
- A newly created instance of
NoCache.
-
remove
public void remove(K key)
-
removeAll
public void removeAll()
-
contains
public boolean contains(K key)
-
size
public long size()
-
isEmpty
public boolean isEmpty()
-
-