Class InternalTransactionBean
- java.lang.Object
-
- com.h2tcoin.takamakachain.transactions.InternalTransactionBean
-
- All Implemented Interfaces:
Serializable
public class InternalTransactionBean extends Object implements Serializable
- Author:
- giovanni.antino@h2tcoin.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternalTransactionBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)IntegergetEpoch()StringgetFrom()BigIntegergetGreenValue()StringgetMessage()DategetNotBefore()BigIntegergetRedValue()IntegergetSlot()StringgetTo()StringgetTransactionHash()KeyContexts.TransactionTypegetTransactionType()inthashCode()voidsetEpoch(Integer epoch)voidsetFrom(String from)voidsetGreenValue(BigInteger greenValue)voidsetMessage(String message)voidsetNotBefore(Date notBefore)voidsetRedValue(BigInteger redValue)voidsetSlot(Integer slot)voidsetTo(String to)voidsetTransactionHash(String transactionHash)voidsetTransactionType(KeyContexts.TransactionType transactionType)
-
-
-
Method Detail
-
getFrom
public String getFrom()
- Returns:
- the from address
-
getTo
public String getTo()
- Returns:
- the to address
-
getNotBefore
public Date getNotBefore()
- Returns:
- internal transaction timestamp this field is set from the author of the transaction the maximum allowed time in which a transaction can be included in a block, can be at most current time + 10 minutes. Transactions with a lower timestamp than the block creation time are discarded
-
getRedValue
public BigInteger getRedValue()
- Returns:
- the redValue of the token
-
getGreenValue
public BigInteger getGreenValue()
- Returns:
- the greenValue of the token
-
getTransactionHash
public String getTransactionHash()
- Returns:
- the transactionHash
-
setFrom
public void setFrom(String from)
- Parameters:
from- the from to set
-
setTo
public void setTo(String to)
- Parameters:
to- the to to set
-
setNotBefore
public void setNotBefore(Date notBefore)
- Parameters:
notBefore- the notBefore to set
-
setRedValue
public void setRedValue(BigInteger redValue)
- Parameters:
redValue- the redValue to set
-
setGreenValue
public void setGreenValue(BigInteger greenValue)
- Parameters:
greenValue- the greenValue to set
-
setTransactionHash
public void setTransactionHash(String transactionHash)
- Parameters:
transactionHash- the transactionHash to set
-
getMessage
public String getMessage()
- Returns:
- the message of the transaction
-
setMessage
public void setMessage(String message)
- Parameters:
message- the message to set in the transaction
-
getTransactionType
public KeyContexts.TransactionType getTransactionType()
- Returns:
- the transactionType
-
setTransactionType
public void setTransactionType(KeyContexts.TransactionType transactionType)
- Parameters:
transactionType- the transactionType to set
-
getEpoch
public Integer getEpoch()
- Returns:
- the epoch
-
getSlot
public Integer getSlot()
- Returns:
- the time slot in which the transaction is included
-
setEpoch
public void setEpoch(Integer epoch)
- Parameters:
epoch- the epoch to set
-
setSlot
public void setSlot(Integer slot)
- Parameters:
slot- the slot to set
-
-