Class Money

java.lang.Object
io.vertx.pgclient.data.Money

public class Money extends Object
The PostgreSQL MONEYinvalid input: '<'/> type.

bigDecimalValue() returns the value without loss of information. doubleValue() returns the value possible loss of information.

  • Constructor Details

    • Money

      public Money(Number value)
    • Money

      public Money()
  • Method Details

    • bigDecimalValue

      public BigDecimal bigDecimalValue()
      Returns:
      the monetary amount as a big decimal without loss of information
    • doubleValue

      public double doubleValue()
      Returns:
      the monetary amount as a double with possible loss of information
    • 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