TaggedStateTableImage<DataType extends Object> class
A stable logical image of a direct-index tagged-state table.
List position is the public transaction tag. A null entry is unallocated;
stale payload bits from an invalid hardware slot are intentionally omitted.
Constructors
-
TaggedStateTableImage(Iterable<
DataType?> entries) - Creates a tagged-state image.
Properties
- allocatedCount → int
-
Number of allocated tags.
no setter
-
allocatedTags
→ Iterable<
int> -
Allocated physical tags.
no setter
- capacity → int
-
Number of addressable tags.
no setter
-
entries
→ List<
DataType?> -
Logical payload at each tag, or
nullwhen unallocated.final - 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< DataType> encodeData) → Map<String, Object?> - Encodes this image without exposing an implementation's private layout.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson<
DataType extends Object> (Map< String, Object?> json, StateValueDecoder<DataType> decodeData) → TaggedStateTableImage<DataType> - Decodes a tagged-state image.