public static interface ElectionContract.TermSnapshotOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsElectionResult(String key)
The election result, candidates’ public key -> number of votes.
|
Map<String,Long> |
getElectionResult()
已过时。
|
int |
getElectionResultCount()
The election result, candidates’ public key -> number of votes.
|
Map<String,Long> |
getElectionResultMap()
The election result, candidates’ public key -> number of votes.
|
long |
getElectionResultOrDefault(String key,
long defaultValue)
The election result, candidates’ public key -> number of votes.
|
long |
getElectionResultOrThrow(String key)
The election result, candidates’ public key -> number of votes.
|
long |
getEndRoundNumber()
The end round number of this term.
|
long |
getMinedBlocks()
The number of blocks mined in this term.
|
long getEndRoundNumber()
The end round number of this term.
int64 end_round_number = 1;long getMinedBlocks()
The number of blocks mined in this term.
int64 mined_blocks = 2;int getElectionResultCount()
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;boolean containsElectionResult(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;@Deprecated Map<String,Long> getElectionResult()
getElectionResultMap() instead.Map<String,Long> getElectionResultMap()
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;long getElectionResultOrDefault(String key, long defaultValue)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;long getElectionResultOrThrow(String key)
The election result, candidates’ public key -> number of votes.
map<string, int64> election_result = 3;Copyright © 2020. All rights reserved.