Package cdm.base.math

Class UnitType.UnitTypeImpl

java.lang.Object
cdm.base.math.UnitType.UnitTypeImpl
All Implemented Interfaces:
UnitType, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
UnitType

public static class UnitType.UnitTypeImpl extends Object implements UnitType
Immutable Implementation of UnitType
  • Constructor Details

  • Method Details

    • getCapacityUnit

      @RosettaAttribute("capacityUnit") @RuneAttribute("capacityUnit") public CapacityUnitEnum getCapacityUnit()
      Description copied from interface: UnitType
      Provides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities.
      Specified by:
      getCapacityUnit in interface UnitType
    • getWeatherUnit

      @RosettaAttribute("weatherUnit") @RuneAttribute("weatherUnit") public WeatherUnitEnum getWeatherUnit()
      Description copied from interface: UnitType
      Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities.
      Specified by:
      getWeatherUnit in interface UnitType
    • getFinancialUnit

      @RosettaAttribute("financialUnit") @RuneAttribute("financialUnit") public FinancialUnitEnum getFinancialUnit()
      Description copied from interface: UnitType
      Provides an enumerated value for financial units, generally used in the context of defining quantities for securities.
      Specified by:
      getFinancialUnit in interface UnitType
    • getCurrency

      @RosettaAttribute("currency") @RuneAttribute("currency") public FieldWithMetaString getCurrency()
      Description copied from interface: UnitType
      Defines the currency to be used as a unit for a price, quantity, or other purpose.
      Specified by:
      getCurrency in interface UnitType
    • build

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

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

      protected void setBuilderFields(UnitType.UnitTypeBuilder 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