public class MoneyValue
extends java.lang.Object
Constructor and Description |
---|
MoneyValue(byte[] userData,
int money)
Constructs a new MoneyValue object.
|
Modifier and Type | Method and Description |
---|---|
int |
getMoney()
Retrieves the monetary value stored in this E-Wallet.
|
byte[] |
getUserData()
Retrieves the user data associated with this E-Wallet.
|
public MoneyValue(byte[] userData, int money)
userData
- The byte array representing user-specific data.money
- The monetary value associated with the E-Wallet, represented as an integer.