|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rational
Specifies a rational number by means of a Java integer numerator (Int32
) and a
Java integer (Int32
) denominator.
Rational
,
TypeDefinitionRecord.Rational
Method Summary | |
---|---|
int |
getDenominator()
Returns the denominator of the value represented by this rational number. |
int |
getNumerator()
Returns the numerator of the value represented by this rational number. |
void |
setDenominator(int denominator)
Sets the denominator of the value represented by this rational number. |
void |
setNumerator(int numerator)
Sets the numerator of the value represented by this rational number. |
void |
setRational(int numerator,
int denominator)
Set the value of this rational number with both its numerator and denominator. |
Method Detail |
---|
@Int32 int getNumerator()
Returns the numerator of the value represented by this rational number.
void setNumerator(@Int32 int numerator)
Sets the numerator of the value represented by this rational number.
numerator
- Numerator part of the rational value.@Int32 int getDenominator()
Returns the denominator of the value represented by this rational number.
void setDenominator(@Int32 int denominator)
Sets the denominator of the value represented by this rational number.
denominator
- Denominator part of the rational value.void setRational(@Int32 int numerator, @Int32 int denominator)
Set the value of this rational number with both its numerator and denominator.
numerator
- Numerator part of the rational value.denominator
- Denominator part of the rational value.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |