@Immutable
public static final class CompoundDataTypes.Rational
extends java.lang.Object
Constructor and Description |
---|
Rational(ByteProvider byteProvider)
Instantiates a new Rational.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
A method to compare 2 rationals, returns true if the rationals match or false if they do not
Note : If the object that was passed in is not an instance of rational this method will return
false
|
long |
getDenominator()
Getter for the denominator of the rational
|
long |
getNumerator()
Getter for the numerator of the rational
|
int |
hashCode()
A method that returns the sum of hashes corresponding to the numerator and denominator of this rational
|
java.lang.String |
toString()
A method that returns a string representation of a Rational object
|
public Rational(ByteProvider byteProvider) throws java.io.IOException
byteProvider
- the mxf byte providerjava.io.IOException
- the iO exceptionpublic long getNumerator()
public long getDenominator()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the object that this rational object should be compared withpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object