java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_string.to_bigdecimal.ToBigDecimal
All Implemented Interfaces:
java.util.function.Function<java.lang.String,​java.math.BigDecimal>

public class ToBigDecimal
extends java.lang.Object
implements java.util.function.Function<java.lang.String,​java.math.BigDecimal>
  • Constructor Summary

    Constructors
    Constructor Description
    ToBigDecimal()  
    ToBigDecimal​(java.lang.String context)
    Convert all input values to BigDecimal values with a specific MathContext.
  • Method Summary

    Modifier and Type Method Description
    java.math.BigDecimal apply​(java.lang.String s)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • ToBigDecimal

      public ToBigDecimal()
    • ToBigDecimal

      public ToBigDecimal​(java.lang.String context)
      Convert all input values to BigDecimal values with a specific MathContext. This form is only supported for scale=0, meaning whole numbers. The value for context can be one of UNLIMITED, DECIMAL32, DECIMAL64, DECIMAL128, or any valid configuration supported by MathContext(String), such as "precision=32 roundingMode=CEILING". In the latter form, roundingMode can be any valid value for RoundingMode, like UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN, HALF_EVEN, or UNNECESSARY.
  • Method Details

    • apply

      public java.math.BigDecimal apply​(java.lang.String s)
      Specified by:
      apply in interface java.util.function.Function<java.lang.String,​java.math.BigDecimal>