Class Asset.AssetImpl

java.lang.Object
cdm.base.staticdata.asset.common.Asset.AssetImpl
All Implemented Interfaces:
Asset, com.rosetta.model.lib.RosettaModelObject
Direct Known Subclasses:
SpecificAsset.SpecificAssetImpl, TransferableProduct.TransferableProductImpl
Enclosing interface:
Asset

public static class Asset.AssetImpl extends Object implements Asset
Immutable Implementation of Asset
  • Constructor Details

  • Method Details

    • getCash

      @RosettaAttribute("Cash") @Accessor(GETTER) @RuneAttribute("Cash") public Cash getCash()
      Description copied from interface: Asset
      An Asset that consists solely of a monetary holding in a currency.
      Specified by:
      getCash in interface Asset
    • getCommodity

      @RosettaAttribute("Commodity") @Accessor(GETTER) @RuneAttribute("Commodity") public Commodity getCommodity()
      Description copied from interface: Asset
      An Asset comprised of raw or refined materials or agricultural products, eg gold, oil or wheat.
      Specified by:
      getCommodity in interface Asset
    • getDigitalAsset

      @RosettaAttribute("DigitalAsset") @Accessor(GETTER) @RuneAttribute("DigitalAsset") public DigitalAsset getDigitalAsset()
      Description copied from interface: Asset
      An Asset that exists only in digital form, eg Bitcoin or Ethereum; excludes the digital representation of other Assets.
      Specified by:
      getDigitalAsset in interface Asset
    • getInstrument

      @RosettaAttribute("Instrument") @Accessor(GETTER) @RuneAttribute("Instrument") public Instrument getInstrument()
      Description copied from interface: Asset
      An asset that is issued by one party to one or more others; Instrument is also a choice data type.
      Specified by:
      getInstrument in interface Asset
    • build

      public Asset build()
      Description copied from interface: Asset
      Build Methods
      Specified by:
      build in interface Asset
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      public Asset.AssetBuilder toBuilder()
      Specified by:
      toBuilder in interface Asset
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(Asset.AssetBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object