Package cdm.base.math

Class MeasureBase.MeasureBaseImpl

java.lang.Object
cdm.base.math.MeasureBase.MeasureBaseImpl
All Implemented Interfaces:
MeasureBase, com.rosetta.model.lib.RosettaModelObject
Direct Known Subclasses:
Measure.MeasureImpl, MeasureSchedule.MeasureScheduleImpl
Enclosing interface:
MeasureBase

public static class MeasureBase.MeasureBaseImpl extends Object implements MeasureBase
Immutable Implementation of MeasureBase
  • Constructor Details

  • Method Details

    • getValue

      @RosettaAttribute("value") @RuneAttribute("value") public BigDecimal getValue()
      Description copied from interface: MeasureBase
      Specifies the value of the measure as a number. Optional because in a measure vector or schedule, this single value may be omitted.
      Specified by:
      getValue in interface MeasureBase
    • getUnit

      @RosettaAttribute("unit") @RuneAttribute("unit") public UnitType getUnit()
      Description copied from interface: MeasureBase
      Qualifies the unit by which the amount is measured. Optional because a measure may be unit-less (e.g. when representing a ratio between amounts in the same unit).
      Specified by:
      getUnit in interface MeasureBase
    • build

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

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

      protected void setBuilderFields(MeasureBase.MeasureBaseBuilder 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