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 boolean
equals(Object obj)
Integer
getEpoch()
String
getFrom()
BigInteger
getGreenValue()
String
getMessage()
Date
getNotBefore()
BigInteger
getRedValue()
Integer
getSlot()
String
getTo()
String
getTransactionHash()
KeyContexts.TransactionType
getTransactionType()
int
hashCode()
void
setEpoch(Integer epoch)
void
setFrom(String from)
void
setGreenValue(BigInteger greenValue)
void
setMessage(String message)
void
setNotBefore(Date notBefore)
void
setRedValue(BigInteger redValue)
void
setSlot(Integer slot)
void
setTo(String to)
void
setTransactionHash(String transactionHash)
void
setTransactionType(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
-
-