2020-08-26 20:02:36 +07:00
|
|
|
package com.cubetiqs.libra.moneyutils
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default standard money style
|
|
|
|
* We have only value and currency of money
|
2020-08-26 20:06:06 +07:00
|
|
|
*
|
|
|
|
* @author sombochea
|
|
|
|
* @since 1.0
|
2020-08-26 20:02:36 +07:00
|
|
|
*/
|
|
|
|
interface StdMoney {
|
|
|
|
/**
|
|
|
|
* Get money's value from current state.
|
|
|
|
*
|
|
|
|
* @return Double
|
|
|
|
*/
|
|
|
|
fun getValue(): Double
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get money's currency from current state.
|
2020-08-26 20:06:06 +07:00
|
|
|
*
|
|
|
|
* @return String
|
2020-08-26 20:02:36 +07:00
|
|
|
*/
|
|
|
|
fun getCurrency(): String
|
|
|
|
}
|