Package cdm.base.math

Class NumberBound.NumberBoundImpl

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

public static class NumberBound.NumberBoundImpl extends Object implements NumberBound
Immutable Implementation of NumberBound
  • Constructor Details

  • Method Details

    • getNumber

      @RosettaAttribute(value="number", isRequired=true) @RuneAttribute(value="number", isRequired=true) public BigDecimal getNumber()
      Description copied from interface: NumberBound
      The number to be used as the bound, e.g. 5.
      Specified by:
      getNumber in interface NumberBound
    • getInclusive

      @RosettaAttribute(value="inclusive", isRequired=true) @RuneAttribute(value="inclusive", isRequired=true) public Boolean getInclusive()
      Description copied from interface: NumberBound
      Whether the number bound is inclusive, e.g. for a lower bound, false would indicate greater than, whereas true would indicate greater than or equal to.
      Specified by:
      getInclusive in interface NumberBound
    • build

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

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

      protected void setBuilderFields(NumberBound.NumberBoundBuilder 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