Class TransactionUtils
- java.lang.Object
-
- com.h2tcoin.takamakachain.transactions.TransactionUtils
-
public class TransactionUtils extends Object
- Author:
- iris.dimni
-
-
Constructor Summary
Constructors Constructor Description TransactionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternalTransactionSyntaxBean
isInternalTransactionBeanValid(InternalTransactionBean input)
method takes a InternalTransactionBean object in input and returns true if the parameter and its mandatory internal fields are not null or empty, returns false otherwisestatic TransactionSyntaxBean
isTransactionBeanValid(TransactionBean input)
method takes a TransactionBean object in input and returns true if the parameter and its internal fields are not null or empty, returns false otherwisestatic ConcurrentSkipListMap<KeyContexts.TransactionType,ConcurrentSkipListSet<TransactionBox>>
splitByType(TransactionBox[] transactions)
split transaction by type in efficent way, type bucket can be empty but not null
-
-
-
Method Detail
-
isTransactionBeanValid
public static TransactionSyntaxBean isTransactionBeanValid(TransactionBean input)
method takes a TransactionBean object in input and returns true if the parameter and its internal fields are not null or empty, returns false otherwise- Parameters:
input
-- Returns:
-
isInternalTransactionBeanValid
public static InternalTransactionSyntaxBean isInternalTransactionBeanValid(InternalTransactionBean input)
method takes a InternalTransactionBean object in input and returns true if the parameter and its mandatory internal fields are not null or empty, returns false otherwise- Parameters:
input
-- Returns:
-
splitByType
public static ConcurrentSkipListMap<KeyContexts.TransactionType,ConcurrentSkipListSet<TransactionBox>> splitByType(TransactionBox[] transactions)
split transaction by type in efficent way, type bucket can be empty but not null- Parameters:
transactions
-- Returns:
-
-