money-module/src/main/kotlin/com/cubetiqs/money/StdMoney.kt

25 lines
442 B
Kotlin
Raw Normal View History

package com.cubetiqs.money
2020-08-26 20:02:36 +07:00
/**
* 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
*/
2020-08-26 21:32:06 +07:00
fun getMoneyValue(): Double
2020-08-26 20:02:36 +07:00
/**
* 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
*/
@SpecialString
2020-08-26 21:32:06 +07:00
fun getMoneyCurrency(): String
2020-08-26 20:02:36 +07:00
}