Class BlockSortedQueue
- java.lang.Object
-
- com.h2tcoin.takamakachain.block.utils.BlockSortedQueue
-
public class BlockSortedQueue extends Object
- Author:
- Giovanni Antino
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteBySith(int epoch, int slot, String blockSith)voiddeleteBySith(BlockBox bb)static StringgetBlockSortingString(int epoch, int slot, String blockSith)static StringgetBlockSortingString(BlockBox bb)intgetNumberOfElemets()BlockBoxgetTopBlock()static BlockSortedQueuei()booleanisEmpty()voidpush(String blockJson)
-
-
-
Method Detail
-
i
public static BlockSortedQueue i()
-
push
public void push(String blockJson)
-
deleteBySith
public void deleteBySith(int epoch, int slot, String blockSith)
-
deleteBySith
public void deleteBySith(BlockBox bb)
-
getBlockSortingString
public static String getBlockSortingString(int epoch, int slot, String blockSith)
-
getTopBlock
public BlockBox getTopBlock()
-
getNumberOfElemets
public int getNumberOfElemets()
-
isEmpty
public boolean isEmpty()
-
-