CardinalityResult<T> class
Represents cardinality calculation results with metadata.
This class provides a structured way to store and access cardinality calculation results along with verification status.
Constructors
-
CardinalityResult({required int value, required String method, bool verified = false, Map<
String, dynamic> metadata = const {}}) -
Creates a new cardinality result.
const
-
CardinalityResult.fromSet(CustomSet<
T> set) -
Creates a cardinality result from a set.
factory
-
CardinalityResult.fromUnion(CustomSet<
T> a, CustomSet<T> b) -
Creates a cardinality result from union calculation.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
metadata
→ Map<
String, dynamic> -
Additional metadata about the calculation.
final
- method → String
-
The method used for calculation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
The calculated cardinality value.
final
- verified → bool
-
Whether the result has been verified.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override