public static enum VoteWeighting.VotingModel extends java.lang.Enum<VoteWeighting.VotingModel>
Enum Constant and Description |
---|
ACCOUNT |
ASSET |
CURRENCY |
HASH |
NONE |
NQT |
TRANSACTION |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsVotes() |
abstract long |
calcWeight(VoteWeighting voteWeighting,
long voterId,
int height) |
static VoteWeighting.VotingModel |
get(byte code) |
byte |
getCode() |
abstract VoteWeighting.MinBalanceModel |
getMinBalanceModel() |
static VoteWeighting.VotingModel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VoteWeighting.VotingModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VoteWeighting.VotingModel NONE
public static final VoteWeighting.VotingModel ACCOUNT
public static final VoteWeighting.VotingModel NQT
public static final VoteWeighting.VotingModel ASSET
public static final VoteWeighting.VotingModel CURRENCY
public static final VoteWeighting.VotingModel TRANSACTION
public static final VoteWeighting.VotingModel HASH
public static VoteWeighting.VotingModel[] values()
for (VoteWeighting.VotingModel c : VoteWeighting.VotingModel.values()) System.out.println(c);
public static VoteWeighting.VotingModel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getCode()
public abstract long calcWeight(VoteWeighting voteWeighting, long voterId, int height)
public abstract VoteWeighting.MinBalanceModel getMinBalanceModel()
public boolean acceptsVotes()
public static VoteWeighting.VotingModel get(byte code)