public final class VoteWeighting
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | VoteWeighting.MinBalanceModel | 
| static class  | VoteWeighting.VotingModel | 
| Constructor and Description | 
|---|
| VoteWeighting(byte votingModel,
             long holdingId,
             long minBalance,
             byte minBalanceModel) | 
| Modifier and Type | Method and 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() | 
public VoteWeighting(byte votingModel,
                     long holdingId,
                     long minBalance,
                     byte minBalanceModel)
public VoteWeighting.VotingModel getVotingModel()
public long getMinBalance()
public long getHoldingId()
public VoteWeighting.MinBalanceModel getMinBalanceModel()
public void validate()
              throws NxtException.ValidationException
NxtException.ValidationExceptionpublic boolean isBalanceIndependent()
public boolean acceptsVotes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object