public final class TiffSRational extends Object implements com.aspose.ms.System.IEquatable<TiffSRational>
Represents signed rational number.
Constructor and Description |
---|
TiffSRational(int numerator,
int denominator)
Initializes a new instance of the
TiffSRational 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(TiffSRational other)
Indicates whether the current object is equal to another object of the same type.
|
static boolean |
equals(TiffSRational rational,
TiffSRational other)
Compares pair of
TiffSRational . |
int |
getDenominator()
Gets denominator.
|
int |
getNumerator()
Gets numerator.
|
double |
getValue()
Gets actual value represented as double.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(TiffSRational left,
TiffSRational right)
Indicates whether two objects of the same type are equal.
|
static boolean |
op_Inequality(TiffSRational left,
TiffSRational right)
Indicates whether two objects of the same type are not equal.
|
String |
toString()
Returns a
System.String that represents this instance. |
public TiffSRational(int numerator, int denominator)
Initializes a new instance of the TiffSRational
class.
numerator
- The numerator.denominator
- The denominator.public final int getNumerator()
Gets numerator.
public final int getDenominator()
Gets denominator.
public final double getValue()
Gets actual value represented as double.
public static boolean equals(TiffSRational rational, TiffSRational other)
Compares pair of TiffSRational
.
rational
- Comparing item.other
- Other item.true
if objects are equal; otherwise false
.public final boolean equals(TiffSRational 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 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<TiffSRational>
equals
in class Object
obj
- An object to compare with this object.true
if the current object is equal to the obj
parameter; otherwise, false
.public int hashCode()
Returns a hash code for this instance.
public static boolean op_Equality(TiffSRational left, TiffSRational right)
Indicates whether two objects of the same type are equal.
left
- The left object.right
- The rigt object.public static boolean op_Inequality(TiffSRational left, TiffSRational right)
Indicates whether two objects of the same type are not equal.
left
- The left object.right
- The rigt object.