Class Fraction

java.lang.Object
org.kurento.client.Fraction

public class Fraction extends Object
Type that represents a fraction of an integer numerator over an integer denominator
  • Constructor Details

    • Fraction

      protected Fraction()
      Default private constructor of Fraction for serialization with Jackson
    • Fraction

      public Fraction(int numerator, int denominator)
      Create a Fraction
  • Method Details

    • getNumerator

      public int getNumerator()
      get the numerator of the fraction
    • setNumerator

      public void setNumerator(int numerator)
      set the numerator of the fraction
    • getDenominator

      public int getDenominator()
      get the denominator of the fraction
    • setDenominator

      public void setDenominator(int denominator)
      set the denominator of the fraction