InMemoryStorage<C extends CacheEntry<K, V> , K extends Comparable, V extends Object?> class
- Inheritance
- Implementers
Constructors
-
InMemoryStorage(int size, {Map<
K, C> ? internalMap})
Properties
- capacity → int
-
Capacity/size of the Storage.
no setterinherited
-
entries
→ List<
C> -
Get List of all the CacheEntrys present in Storage.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keys
→ List<
K> -
Get List of all the keys present in Storage.
no setteroverride
- length → int
-
Count of the CacheEntrys present in Storage.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void -
Clears the Storage, removing all the present CacheEntrys.
override
-
containsKey(
K key) → bool -
If Storage contains
key
.override -
get(
K key) → C? -
Get a CacheEntry using
key
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
K key) → void -
Removes the CacheEntry with
key
.override -
set(
K key, C entry) → InMemoryStorage< CacheEntry< Comparable, Object?> , Comparable, Object?> -
Insert a CacheEntry with
key
into the Storage.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
K key) → C? -
Get a CacheEntry using
key
.override -
operator []=(
K key, C entry) → void -
Insert a CacheEntry with
key
into the Storage.override