Lines Matching refs:Rational

350      * Sets Rational values into this tag. This method should be used for tags
361 * @see Rational
363 public boolean setValue(Rational[] value) {
382 * Sets a Rational value into this tag. This method should be used for tags
392 * @see Rational
394 public boolean setValue(Rational value) {
395 return setValue(new Rational[] {
468 } else if (obj instanceof Rational) {
469 return setValue((Rational) obj);
470 } else if (obj instanceof Rational[]) {
471 return setValue((Rational[]) obj);
605 public Rational[] getValueAsRationals() {
606 if (mValue instanceof Rational[]) {
607 return (Rational[]) mValue;
613 * Gets the value as a Rational. If there are more than 1 Rationals in this
617 * @param defaultValue the Rational to return if tag's value does not exist
618 * or cannot be converted to a Rational.
619 * @return the tag's value as a Rational, or the defaultValue.
621 public Rational getValueAsRational(Rational defaultValue) {
622 Rational[] r = getValueAsRationals();
630 * Gets the value as a Rational. If there are more than 1 Rationals in this
634 * @param defaultValue the numerator of the Rational to return if tag's
635 * value does not exist or cannot be converted to a Rational (the
637 * @return the tag's value as a Rational, or the defaultValue.
639 public Rational getValueAsRational(long defaultValue) {
640 Rational defaultVal = new Rational(defaultValue, 1);
737 Rational[] r = getValueAsRationals();
825 protected Rational getRational(int index) {
830 return ((Rational[]) mValue)[index];
939 private boolean checkOverflowForUnsignedRational(Rational[] value) {
940 for (Rational v : value) {
950 private boolean checkOverflowForRational(Rational[] value) {
951 for (Rational v : value) {
981 } else if (mValue instanceof Rational[]) {
982 if (!(tag.mValue instanceof Rational[])) {
985 return Arrays.equals((Rational[]) mValue, (Rational[]) tag.mValue);