mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-06-02 11:21:45 +00:00
24 lines
439 B
Java
24 lines
439 B
Java
package me.totalfreedom.economy;
|
|
|
|
/**
|
|
* A class that denotes the transfer of currency between two EconomicEntity instances.
|
|
*/
|
|
public interface Transaction
|
|
{
|
|
/**
|
|
* @return the initiating entity
|
|
*/
|
|
EconomicEntity getSource();
|
|
|
|
/**
|
|
* @return the destination entity
|
|
*/
|
|
EconomicEntity getDestination();
|
|
|
|
/**
|
|
* @return the balance transferred in this Transaction
|
|
*/
|
|
long getBalance();
|
|
|
|
}
|