Class BlocksBean
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.chainInfo.BlocksBean
-
- All Implemented Interfaces:
Serializable
,Comparable<BlocksBean>
public class BlocksBean extends Object implements Serializable, Comparable<BlocksBean>
- Author:
- Giovanni Antino
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlocksBean(TransactionBox blockHashTbox)
create the entry for a real blockBlocksBean(TransactionBox blockHashTbox, String idString)
Create a fill entry for the missing slots that precede the current real block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BlocksBean o)
boolean
equals(Object obj)
String
getBlockHash()
String
getBlockPath()
int
getEpoch()
String
getHexHashIdString()
String
getIdString()
int
getSlot()
int
hashCode()
boolean
isRealBlock()
true if the current block is a real block
-
-
-
Constructor Detail
-
BlocksBean
public BlocksBean(TransactionBox blockHashTbox)
create the entry for a real block- Parameters:
blockHashTbox
-
-
BlocksBean
public BlocksBean(TransactionBox blockHashTbox, String idString)
Create a fill entry for the missing slots that precede the current real block. All these blocks will point to the next valid block. Epoch, Slot, BlockHash and Path correspond to those of the next real block. The identification string is that of the skipped block.- Parameters:
blockHashTbox
- block hash of the next valid blockidString
- identification of the current missed slot
-
-
Method Detail
-
isRealBlock
public boolean isRealBlock()
true if the current block is a real block- Returns:
-
getBlockHash
public String getBlockHash()
-
getBlockPath
public String getBlockPath()
-
getEpoch
public int getEpoch()
-
getSlot
public int getSlot()
-
getIdString
public String getIdString()
-
getHexHashIdString
public String getHexHashIdString()
-
compareTo
public int compareTo(BlocksBean o)
- Specified by:
compareTo
in interfaceComparable<BlocksBean>
-
-