Storage<C extends CacheEntry<K, V>, K extends Comparable, V extends Object?> class abstract

Implementers

Constructors

Storage(int size)

Properties

capacity int
Capacity/size of the Storage.
no setter
entries List<C>
Get List of all the CacheEntrys present in Storage.
no setter
hashCode int
The hash code for this object.
no setterinherited
keys List<K>
Get List of all the keys present in Storage.
no setter
length int
Count of the CacheEntrys present in Storage.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the Storage, removing all the present CacheEntrys.
containsKey(K key) bool
If Storage contains key.
get(K key) → C?
Get a CacheEntry using key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(K key) → void
Removes the CacheEntry with key.
set(K key, C entry) Storage<CacheEntry<Comparable, Object?>, Comparable, Object?>
Insert a CacheEntry with key into the Storage.
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.
operator []=(K key, C entry) → void
Insert a CacheEntry with key into the Storage.