Package cdm.base.math

Class MoneyBound.MoneyBoundImpl

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

public static class MoneyBound.MoneyBoundImpl extends Object implements MoneyBound
Immutable Implementation of MoneyBound
  • Constructor Details

  • Method Details

    • getMoney

      @RosettaAttribute(value="money", isRequired=true) @RuneAttribute(value="money", isRequired=true) public Money getMoney()
      Description copied from interface: MoneyBound
      The money amount to be used as the bound, e.g. 1,000 USD.
      Specified by:
      getMoney in interface MoneyBound
    • getInclusive

      @RosettaAttribute(value="inclusive", isRequired=true) @RuneAttribute(value="inclusive", isRequired=true) public Boolean getInclusive()
      Description copied from interface: MoneyBound
      Whether the money amount 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 MoneyBound
    • build

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

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

      protected void setBuilderFields(MoneyBound.MoneyBoundBuilder 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