Module java.money
Package javax.money

Class MonetaryAmountFactoryQuery

All Implemented Interfaces:
Serializable

public final class MonetaryAmountFactoryQuery extends AbstractQuery implements Serializable
Query to lookup instances of MonetaryAmountFactory, which are determined by the (minimal) capabilities required by the give use case. By default amount factories can be queried by
  • The maximal scale needed (THE ADDITIONAL fixed scale allows to define the minimal an maximal scale to be the same).
  • The maximal numeric precision required.
  • the target MonetaryAmount implementation type.
  • any other attributes, currently supported by the current factory and query implementation registered.

This class is thread-safe, final and serializable.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getMaxScale

      public Integer getMaxScale()
      Get the maximal scale to be supported.
      Returns:
      the maximal scale, or null, if this attribute must not be considered.
    • getPrecision

      public Integer getPrecision()
      Get the maximal precision to be supported.
      Returns:
      the maximal precision, or null, if this attribute must not be considered.
    • isFixedScale

      public Boolean isFixedScale()
      Get the fixed scale flag to be supported. A fixed scale hereby means that the scale is always equal to the max scale (it could never be less).
      Returns:
      the fixed scale flag, or null, if this attribute must not be considered.
    • toBuilder

      Creates a new builder instances, initialized with the data from this one.
      Returns:
      a new MonetaryAmountFactoryQueryBuilder instance, never null.