Package nxt
Class VoteWeighting
- java.lang.Object
-
- nxt.VoteWeighting
-
public final class VoteWeighting extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VoteWeighting.MinBalanceModel
static class
VoteWeighting.VotingModel
-
Constructor Summary
Constructors Constructor Description VoteWeighting(byte votingModel, long holdingId, long minBalance, byte minBalanceModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsVotes()
boolean
equals(java.lang.Object o)
long
getHoldingId()
long
getMinBalance()
VoteWeighting.MinBalanceModel
getMinBalanceModel()
VoteWeighting.VotingModel
getVotingModel()
int
hashCode()
boolean
isBalanceIndependent()
void
validate()
-
-
-
Method Detail
-
getVotingModel
public VoteWeighting.VotingModel getVotingModel()
-
getMinBalance
public long getMinBalance()
-
getHoldingId
public long getHoldingId()
-
getMinBalanceModel
public VoteWeighting.MinBalanceModel getMinBalanceModel()
-
validate
public void validate() throws NxtException.ValidationException
- Throws:
NxtException.ValidationException
-
isBalanceIndependent
public boolean isBalanceIndependent()
-
acceptsVotes
public boolean acceptsVotes()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-