/** * @param ehdokas * @return aanet */ public int compareTo(Ehdokas ehdokas) { return (this.getAanet() - ehdokas.getAanet()); }