Record Class Asset
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.core.Asset
- Record Components:
code- the upper-case asset code
Engine-owned single asset / currency code (e.g.
BTC, USDT) — the money-side
counterpart of the Instrument market identity. Replaces XChange's Currency across
the engine domain (balances, fees, input/output currency, accept filtering).
Pure domain record with no XChange dependency. XChange's Currency is confined to the
exchange / order-execution boundary; XChangeConvert (qtsurfer-engine-exchange) bridges the
two at that edge. Codes are normalised to upper-case so Asset.of("usdt") equals
new Asset("USDT").
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static AssettoString()Returns a string representation of this record class.
-
Constructor Details
-
Asset
-
-
Method Details
-
of
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
code
-