CondorcetPair<TCandidate extends Comparable> class
- Implemented types
- Annotations
-
- @immutable
Constructors
-
CondorcetPair(TCandidate can1, TCandidate can2, [List<
RankedBallot< ? ballots])TCandidate> > -
factory
Properties
- candidate1 → TCandidate
-
final
- candidate2 → TCandidate
-
final
- firstOverSecond → int?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isTie → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondOverFirst → int?
-
final
- ties → int?
-
Number of ballots where neither candidate was listed
final
- winner → TCandidate?
-
no setter
Methods
-
compareTo(
CondorcetPair< Comparable> other) → int -
Compares this object to another object.
override
-
flip(
TCandidate firstCandidate) → CondorcetPair< TCandidate> -
matches(
TCandidate can1, TCandidate can2) → bool -
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