Class TieredValue.Tier

Object
Tier
All Implemented Interfaces:
Serializable
Enclosing class:
TieredValue

public static class TieredValue.Tier extends Object implements Serializable
One target/value pair of a TieredValue, for example one volume breakpoint and the discount or surcharge that applies from it.

The fields n, target, value, targetRaw and valueRaw have no getter methods. A logic reads them by Groovy property access, for example tier.target and tier.value.

See Also:
  • Method Details

    • toString

      public String toString()
      Returns this tier formatted as "<n+1>. <target>=<value>", for example "1. 10=20".
      Overrides:
      toString in class Object
      Returns:
      The formatted tier.