public final class TiffRational extends Object implements com.aspose.ms.System.IEquatable<TiffRational>
Represents a rational number.
| Constructor and Description |
|---|
TiffRational(long numerator,
long denominator)
Initializes a new instance of the
TiffRational class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(TiffRational other)
Indicates whether the current object is equal to another object of the same type.
|
static boolean |
equals(TiffRational rational,
TiffRational other)
Compares a pair of
TiffRational numbers. |
long |
getDenominator()
Gets the denominator.
|
long |
getNumerator()
Gets the numerator.
|
double |
getValue()
Gets the rational value.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(TiffRational left,
TiffRational right)
Indicates whether two objects of the same type are equal.
|
static boolean |
op_Inequality(TiffRational left,
TiffRational right)
Indicates whether two objects of the same type are not equal.
|
String |
toString()
Returns a
string that represents this instance. |
public TiffRational(long numerator,
long denominator)
Initializes a new instance of the TiffRational class.
numerator - The numerator.denominator - The denominator.public boolean equals(Object obj)
Indicates whether the current object is equal to another object of the same type.
equals in interface com.aspose.ms.System.IEquatable<TiffRational>equals in class Objectobj - An object to compare with this object.true if the current object is equal to the obj parameter; otherwise, false.public final boolean equals(TiffRational other)
Indicates whether the current object is equal to another object of the same type.
other - An object to compare with this object.true if the current object is equal to the other parameter; otherwise, false.public static boolean equals(TiffRational rational, TiffRational other)
Compares a pair of TiffRational numbers.
rational - A rational number.other - Another rational number.true if the objects are equal; otherwise, false.public final long getDenominator()
Gets the denominator.
public final long getNumerator()
Gets the numerator.
public final double getValue()
Gets the rational value.
public int hashCode()
Returns a hash code for this instance.
public static boolean op_Equality(TiffRational left, TiffRational right)
Indicates whether two objects of the same type are equal.
left - The left object.right - The rigt object.public static boolean op_Inequality(TiffRational left, TiffRational right)
Indicates whether two objects of the same type are not equal.
left - The left object.right - The right object.Copyright © 2026. All rights reserved.