public class BlockDuration
extends java.lang.Object
Constructor and Description |
---|
BlockDuration(java.math.BigInteger duration)
Constructor.
|
BlockDuration(long duration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
It compares this
BlockDuration to another object. |
long |
getDuration()
Returns the number of blocks from height it will be active
|
int |
hashCode() |
java.lang.String |
toString()
Returns the duration as string.
|
public BlockDuration(long duration)
duration
- longpublic BlockDuration(java.math.BigInteger duration)
duration
- BigIntegerpublic long getDuration()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
BlockDuration
to another object. Returns true if the object is a
BlockDuration
with the same duration number.equals
in class java.lang.Object
o
- the object to be compared.BlockDuration
with the same duration. False otherwisepublic int hashCode()
hashCode
in class java.lang.Object