Class UnitPriceAmount

java.lang.Object
java.lang.Number
java.math.BigDecimal
com.fourjs.report.facturx.UnitPriceAmount
All Implemented Interfaces:
Serializable, Comparable<BigDecimal>

public class UnitPriceAmount extends BigDecimal
Represents the Unit Price Amount data type described in section 7.1.5, "Data types", of the Factur-X specification: a decimal that, unlike an Amount, is not limited to two digits after the decimal point.
See Also:
  • Method Details

    • fromString

      public static UnitPriceAmount fromString(String value)
      Returns a UnitPriceAmount holding the value parsed from a decimal string; surrounding whitespace is ignored.
      Parameters:
      value - the decimal value in string form, for example "1000.3454"
      Returns:
      a UnitPriceAmount equal to value
    • valueOf

      public static UnitPriceAmount valueOf(BigDecimal value)
      Returns a UnitPriceAmount holding the given value.
      Parameters:
      value - the value
      Returns:
      a UnitPriceAmount equal to value
    • valueOf

      public static UnitPriceAmount valueOf(String value)
      Returns a UnitPriceAmount holding the value parsed from a decimal string; surrounding whitespace is ignored.
      Parameters:
      value - the decimal value in string form, for example "1000.3454"
      Returns:
      a UnitPriceAmount equal to value
    • valueOf

      public static UnitPriceAmount valueOf(double value)
      Returns a UnitPriceAmount holding the given value.
      Parameters:
      value - the value
      Returns:
      a UnitPriceAmount equal to value
    • valueOf

      public static UnitPriceAmount valueOf(int value)
      Returns a UnitPriceAmount holding the given value.
      Parameters:
      value - the value
      Returns:
      a UnitPriceAmount equal to value