Interface HighPrecisionMoney

All Superinterfaces:
TypedMoney

public interface HighPrecisionMoney extends TypedMoney
HighPrecisionMoney
Example to create an instance using the builder pattern

     HighPrecisionMoney highPrecisionMoney = HighPrecisionMoney.builder()
             .centAmount(0.3)
             .currencyCode("{currencyCode}")
             .preciseAmount(0.3)
             .build()
 
  • Field Details

  • Method Details

    • getPreciseAmount

      @NotNull @NotNull Long getPreciseAmount()
      Returns:
      preciseAmount
    • setPreciseAmount

      void setPreciseAmount(Long preciseAmount)
      set preciseAmount
      Parameters:
      preciseAmount - value to be set
    • of

      static HighPrecisionMoney of()
      factory method
      Returns:
      instance of HighPrecisionMoney
    • of

      static HighPrecisionMoney of(HighPrecisionMoney template)
      factory method to create a shallow copy HighPrecisionMoney
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of HighPrecisionMoney
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static HighPrecisionMoneyBuilder builder()
      builder factory method for HighPrecisionMoney
      Returns:
      builder
    • builder

      static HighPrecisionMoneyBuilder builder(HighPrecisionMoney template)
      create builder for HighPrecisionMoney instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withHighPrecisionMoney

      default <T> T withHighPrecisionMoney(Function<HighPrecisionMoney,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<HighPrecisionMoney> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference