Class NoCache<K,V>
- java.lang.Object
-
- com.github.javaparser.symbolsolver.cache.NoCache<K,V>
-
-
Constructor Summary
Constructors Constructor Description NoCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(K key)
static <expectedK,expectedV>
NoCache<expectedK,expectedV>create()
Create a new instance.Optional<V>
get(K key)
boolean
isEmpty()
void
put(K key, V value)
void
remove(K key)
void
removeAll()
long
size()
CacheStats
stats()
-
-
-
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
.
-
stats
public CacheStats stats()
-
-