Currency

@Entity
open class Currency : Identifiable<T>

Constructors

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

Link copied to clipboard
Link copied to clipboard
@NotNull
open var TESTING_URL: @NotNull String

Functions

Link copied to clipboard
@NotNull
open fun builder(): @NotNull CurrencyBuilder
Link copied to clipboard
open fun equals(object: Any): Boolean
Link copied to clipboard
@NotNull
open fun formatValue(value: Double): @NotNull String
Link copied to clipboard
@NotNull
open fun from(@NotNull currency: @NotNull Currency): @NotNull Currency
Link copied to clipboard
@NotNull
open fun fromExisting(currencyCode: String): @NotNull Currency
Link copied to clipboard
@NotNull
open fun fromHistory(@NotNull currencyHistory: @NotNull CurrencyHistory): @NotNull Currency
Link copied to clipboard
open fun getApiValue(): Double
Link copied to clipboard
@NotNull
open fun getCoinbaseUrl(): @NotNull String
Link copied to clipboard
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
Link copied to clipboard
open fun getValueFromJson(@NotNull json: @NotNull String): Double
Link copied to clipboard
open fun setId(id: String)
Link copied to clipboard
open fun setValue(value: Double)
Link copied to clipboard
@NotNull
open fun toString(): @NotNull String
Link copied to clipboard
open fun updateValue()