public class Vote extends Object implements Comparable<Vote>
ElectionCredentialsProvider implementations for details).
Votes are comparable so that they can be ordered to find winner. Credentials implement the comparison rules.| Constructor and Description |
|---|
Vote(InstanceId suggestedNode,
ElectionCredentials voteCredentials) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Vote o) |
boolean |
equals(Object o) |
Comparable<ElectionCredentials> |
getCredentials() |
InstanceId |
getSuggestedNode() |
int |
hashCode() |
String |
toString() |
public Vote(InstanceId suggestedNode, ElectionCredentials voteCredentials)
public InstanceId getSuggestedNode()
public Comparable<ElectionCredentials> getCredentials()
public int compareTo(Vote o)
compareTo in interface Comparable<Vote>Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.