Package org.kurento.client
Class Fraction
java.lang.Object
org.kurento.client.Fraction
Type that represents a fraction of an integer numerator over an integer denominator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
get the denominator of the fractionint
get the numerator of the fractionvoid
setDenominator
(int denominator) set the denominator of the fractionvoid
setNumerator
(int numerator) set the numerator of the fraction
-
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
-