Class AbstractFormat

java.lang.Object
java.text.Format
java.text.NumberFormat
org.apache.commons.math3.fraction.AbstractFormat
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BigFractionFormat, FractionFormat

public abstract class AbstractFormat extends NumberFormat implements Serializable
Common part shared by both FractionFormat and BigFractionFormat.
Since:
2.0
See Also:
  • Constructor Details

    • AbstractFormat

      protected AbstractFormat()
      Create an improper formatting instance with the default number format for the numerator and denominator.
    • AbstractFormat

      protected AbstractFormat(NumberFormat format)
      Create an improper formatting instance with a custom number format for both the numerator and denominator.
      Parameters:
      format - the custom format for both the numerator and denominator.
    • AbstractFormat

      protected AbstractFormat(NumberFormat numeratorFormat, NumberFormat denominatorFormat)
      Create an improper formatting instance with a custom number format for the numerator and a custom number format for the denominator.
      Parameters:
      numeratorFormat - the custom format for the numerator.
      denominatorFormat - the custom format for the denominator.
  • Method Details