ReferenceCountedAssociativeTableImage<KeyType extends Object> class

Logical state of a reference-counted associative table.

List position preserves physical allocation ownership while avoiding any dependence on the implementation's free-list representation.

Constructors

ReferenceCountedAssociativeTableImage(Iterable<ReferenceCountedAssociativeEntryImage<KeyType>?> entries)
Creates a reference-counted associative image.

Properties

allocatedCount → int
Number of allocated entries.
no setter
allocatedIndices → Iterable<int>
Physical indices owned by allocated entries.
no setter
capacity → int
Number of physical entries.
no setter
entries → List<ReferenceCountedAssociativeEntryImage<KeyType>?>
Allocated entries by physical index.
final
freeIndices → Iterable<int>
Physical indices available for allocation.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(StateValueEncoder<KeyType> encodeKey) → Map<String, Object?>
Encodes this image in physical-index order.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson<KeyType extends Object>(Map<String, Object?> json, StateValueDecoder<KeyType> decodeKey) → ReferenceCountedAssociativeTableImage<KeyType>
Decodes a reference-counted associative image.

Constants

kind → const String
Stable schema identifier.
version → const int
Current schema version.