TiffSRational
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public final class TiffSRational implements System.IEquatable<TiffSRational>
Represents signed rational number.
| Constructor | Description |
|---|---|
| TiffSRational(int numerator, int denominator) | Initializes a new instance of the TiffSRational class. |
| Method | Description |
|---|---|
| getNumerator() | Gets numerator. |
| getDenominator() | Gets denominator. |
| getValue() | Gets actual value represented as double. |
| equals(TiffSRational rational, TiffSRational other) | Compares pair of TiffSRational . |
| equals(TiffSRational other) | Indicates whether the current object is equal to another object of the same type. |
| equals(Object obj) | Indicates whether the current object is equal to another object of the same type. |
| hashCode() | Returns a hash code for this instance. |
| op_Equality(TiffSRational left, TiffSRational right) | Indicates whether two objects of the same type are equal. |
| op_Inequality(TiffSRational left, TiffSRational right) | Indicates whether two objects of the same type are not equal. |
| toString() | Returns a System.String that represents this instance. |
public TiffSRational(int numerator, int denominator)
Initializes a new instance of the TiffSRational class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| numerator | int | The numerator. |
| denominator | int | The denominator. |
public final int getNumerator()
Gets numerator.
Returns: int - The numerator.
public final int getDenominator()
Gets denominator.
Returns: int - The denominator.
public final double getValue()
Gets actual value represented as double.
Returns: double - Double value.
public static boolean equals(TiffSRational rational, TiffSRational other)
Compares pair of TiffSRational .
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rational | TiffSRational | Comparing item. |
| other | TiffSRational | Other item. |
Returns: boolean - 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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | TiffSRational | An object to compare with this object. |
Returns: boolean - 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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | An object to compare with this object. |
Returns: boolean - true if the current object is equal to the obj parameter; otherwise, false .
public int hashCode()
Returns a hash code for this instance.
Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
public static boolean op_Equality(TiffSRational left, TiffSRational right)
Indicates whether two objects of the same type are equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | TiffSRational | The left object. |
| right | TiffSRational | The rigt object. |
Returns: boolean - True if the objects are equal; otherwise, false.
public static boolean op_Inequality(TiffSRational left, TiffSRational right)
Indicates whether two objects of the same type are not equal.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | TiffSRational | The left object. |
| right | TiffSRational | The rigt object. |
Returns: boolean - True if the objects are not equal; otherwise, false.
public String toString()
Returns a System.String that represents this instance.
Returns: java.lang.String - A System.String that represents this instance.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.