CryptoCurrencyTransfer
Inheritance: java.lang.Object
public class CryptoCurrencyTransfer
Represents Crypto currency transfer (reciever or transfer) for QR-Code.
Constructors
| Constructor | Description |
|---|---|
| CryptoCurrencyTransfer() |
Methods
| Method | Description |
|---|---|
| getType() | Gets or sets one of supported crypto currency type. |
| setType(int value) | Gets or sets one of supported crypto currency type. |
| getAmount() | Gets or sets transfer amount. |
| setAmount(BigDecimal value) | Gets or sets transfer amount. |
| getAddress() | Gets or sets crypto currency public address. |
| setAddress(String value) | Gets or sets crypto currency public address. |
| getMessage() | Gets or sets optional transfer message. |
| setMessage(String value) | Gets or sets optional transfer message. |
| getCustomType() | Gets or sets optional transfer message. |
| setCustomType(String value) | Gets or sets optional transfer message. |
| equals(Object obj) | Overwrites Equals method to compare Crypto currency transfer properties |
| hashCode() | Overrides GetHashCode method |
CryptoCurrencyTransfer()
public CryptoCurrencyTransfer()
getType()
public final int getType()
Gets or sets one of supported crypto currency type.
Returns: int
setType(int value)
public final void setType(int value)
Gets or sets one of supported crypto currency type.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
getAmount()
public final BigDecimal getAmount()
Gets or sets transfer amount.
Returns: java.math.BigDecimal
setAmount(BigDecimal value)
public final void setAmount(BigDecimal value)
Gets or sets transfer amount.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.math.BigDecimal |
getAddress()
public final String getAddress()
Gets or sets crypto currency public address.
Returns: java.lang.String
setAddress(String value)
public final void setAddress(String value)
Gets or sets crypto currency public address.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
getMessage()
public final String getMessage()
Gets or sets optional transfer message.
Returns: java.lang.String
setMessage(String value)
public final void setMessage(String value)
Gets or sets optional transfer message.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
getCustomType()
public final String getCustomType()
Gets or sets optional transfer message.
Returns: java.lang.String
setCustomType(String value)
public final void setCustomType(String value)
Gets or sets optional transfer message.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
equals(Object obj)
public boolean equals(Object obj)
Overwrites Equals method to compare Crypto currency transfer properties
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | Crypto currency transfer object to compare with. |
Returns: boolean - Returns true if passed Crypto currency transfer object has same type and all its properties are equal to this instance properties.
hashCode()
public int hashCode()
Overrides GetHashCode method
Returns: int - Crypto currency transfer hash code