Candidacy

@Serializable
data class Candidacy<ID : Any, Distance : Comparable<Distance>, Strength : Comparable<Strength>>(val candidate: ID, val distance: Distance, val strength: Strength) : Comparable<Candidacy<ID, Distance, Strength>>

A Candidacy represents a candidate in an election. candidate is the ID of the candidate. distance is the Distance of the current device from the candidate. strength is the Strength of the candidate.

Constructors

Link copied to clipboard
constructor(candidate: ID, distance: Distance, strength: Strength)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: Candidacy<ID, Distance, Strength>): Int