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 classVoteWeighting.MinBalanceModelstatic classVoteWeighting.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 booleanacceptsVotes()booleanequals(java.lang.Object o)longgetHoldingId()longgetMinBalance()VoteWeighting.MinBalanceModelgetMinBalanceModel()VoteWeighting.VotingModelgetVotingModel()inthashCode()booleanisBalanceIndependent()voidvalidate()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-