LRUCache<K, V> class

实现一个简单的 LRU 缓存

Constructors

LRUCache(int capacity)

Properties

capacity int
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
no setter
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
containsKey(K key) bool
keys() Iterable<K>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(K key) → V?
toString() String
A string representation of this object.
override
values() Iterable<V>

Operators

operator ==(Object other) bool
The equality operator.
override
operator [](K key) → V?
operator []=(K key, V value) → void