public class MosaicNonce
extends java.lang.Object
Constructor and Description |
---|
MosaicNonce(int nonce)
Create MosaicNonce from int
|
Modifier and Type | Method and Description |
---|---|
static MosaicNonce |
createFromBigInteger(java.math.BigInteger number)
Create a MosaicNonce from a BigInteger.
|
static MosaicNonce |
createFromInteger(java.lang.Integer number)
Create a MosaicNonce from a Integer.
|
static MosaicNonce |
createRandom()
Create a random MosaicNonce
|
boolean |
equals(java.lang.Object o) |
int |
getNonceAsInt() |
long |
getNonceAsLong() |
int |
hashCode() |
public MosaicNonce(int nonce)
nonce
- the nonce as byte array.public static MosaicNonce createRandom()
public static MosaicNonce createFromBigInteger(java.math.BigInteger number)
number
- the nonce as number.public static MosaicNonce createFromInteger(java.lang.Integer number)
number
- the nonce as number.public int getNonceAsInt()
public long getNonceAsLong()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object