org.gstreamer
Class Fraction
java.lang.Object
org.gstreamer.Fraction
public class Fraction
- extends java.lang.Object
Represents a fraction value.
Constructor Summary |
Fraction(int numerator,
int denominator)
Creates a new Fraction . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numerator
public final int numerator
denominator
public final int denominator
Fraction
public Fraction(int numerator,
int denominator)
- Creates a new
Fraction
.
- Parameters:
numerator
- the numerator value.denominator
- the denominator value.
getNumerator
public int getNumerator()
- Gets the numerator of the
Fraction
- Returns:
- the numerator as an integer.
getDenominator
public int getDenominator()
- Gets the denominator of the
Fraction
- Returns:
- the denominator as an integer.