RankedBallot<TCandidate extends Comparable> class

Implemented types
Annotations
  • @immutable

Constructors

RankedBallot(List<TCandidate> rank)

Properties

choice → TCandidate
no setteroverride
hashCode int
The hash code for this object.
no setteroverride
rank List<TCandidate>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(RankedBallot<TCandidate> other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
referencedCandidates() Iterable<TCandidate>
All candidates referenced by this ballot.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

compareRanks<T extends Comparable>(List<T> a, List<T> b) int