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:
Cache<K,V>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnsTrueif the cache contains a entry with the key, orFalseif there is none.static <expectedK, expectedV>
NoCache<expectedK, expectedV> create()Create a new instance.Returns the value associated withkeyin this cache, or empty if there is no cached value forkey.booleanisEmpty()ReturnsTrueif the cache is empty, orFalseif there's at least a entry stored in cache.voidAssociates value with key in this cache.voidDiscards any cached value for this key.voidDiscards all entries in the cache.longsize()Returns the number of entries in this cache.stats()Returns a current snapshot of this cache's cumulative statistics, or a set of default values if the cache is not recording statistics.
-
Constructor Details
-
NoCache
public NoCache()
-
-
Method Details
-
create
-
put
Description copied from interface:CacheAssociates value with key in this cache.
If the cache previously contained a value associated with key, the old value is replaced by value. -
get
-
remove
-
removeAll
-
contains
-
size
-
isEmpty
-
stats
Description copied from interface:CacheReturns a current snapshot of this cache's cumulative statistics, or a set of default values if the cache is not recording statistics. All statistics begin at zero and never decrease over the lifetime of the cache.
-