toggle menu
data-models
JVM
switch theme
search in API
data-models
/
org.cryptotrader.data.library.entity.currency
/
Currency
Currency
@
Entity
open
class
Currency
Members
Constructors
Currency
Link copied to clipboard
constructor
(
)
constructor
(
name
:
String
,
currencyCode
:
String
)
constructor
(
name
:
String
,
currencyCode
:
String
,
urlPath
:
String
)
constructor
(
name
:
String
,
currencyCode
:
String
,
value
:
Double
,
urlPath
:
String
)
constructor
(
name
:
String
,
currencyCode
:
String
,
urlPath
:
String
,
value
:
Double
,
lastUpdated
:
LocalDateTime
)
Properties
decimal
Format
Link copied to clipboard
val
decimalFormat
:
DecimalFormat
TESTING_URL
Link copied to clipboard
open
var
TESTING_URL
:
String
Functions
builder
Link copied to clipboard
open
fun
builder
(
)
:
CurrencyBuilder
equals
Link copied to clipboard
open
fun
equals
(
object
:
Any
)
:
Boolean
format
Value
Link copied to clipboard
open
fun
formatValue
(
value
:
Double
)
:
String
from
Link copied to clipboard
open
fun
from
(
currency
:
Currency
)
:
Currency
from
Existing
Link copied to clipboard
open
fun
fromExisting
(
currencyCode
:
String
)
:
Currency
get
Api
Value
Link copied to clipboard
open
fun
getApiValue
(
)
:
Double
get
Coinbase
Url
Link copied to clipboard
open
fun
getCoinbaseUrl
(
)
:
String
get
Currency
Api
Json
Link copied to clipboard
open
fun
getCurrencyApiJson
(
)
:
String
get
Updated
Value
Link copied to clipboard
open
fun
getUpdatedValue
(
)
:
Double
get
Value
From
Json
Link copied to clipboard
open
fun
getValueFromJson
(
json
:
String
)
:
Double
set
Value
Link copied to clipboard
open
fun
setValue
(
value
:
Double
)
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
update
Value
Link copied to clipboard
open
fun
updateValue
(
)