com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class TiffSRational

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<TiffSRational>


    public final class TiffSRational
    extends Object
    implements com.aspose.ms.System.IEquatable<TiffSRational>

    Represents signed rational number.

    • Constructor Detail

      • TiffSRational

        public TiffSRational(int numerator,
                             int denominator)

        Initializes a new instance of the TiffSRational class.

        Parameters:
        numerator - The numerator.
        denominator - The denominator.
    • Method Detail

      • getNumerator

        public final int getNumerator()

        Gets numerator.

        Returns:
        The numerator.
      • getDenominator

        public final int getDenominator()

        Gets denominator.

        Returns:
        The denominator.
      • getValue

        public final double getValue()

        Gets actual value represented as double.

        Returns:
        Double value.
      • equals

        public static boolean equals(TiffSRational rational,
                                     TiffSRational other)

        Compares pair of TiffSRational.

        Parameters:
        rational - Comparing item.
        other - Other item.
        Returns:
        true if objects are equal; otherwise false.
      • equals

        public final boolean equals(TiffSRational other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • equals

        public boolean equals(Object obj)

        Indicates whether the current object is equal to another object of the same type.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<TiffSRational>
        Overrides:
        equals in class Object
        Parameters:
        obj - An object to compare with this object.
        Returns:
        true if the current object is equal to the obj parameter; otherwise, false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
      • op_Equality

        public static boolean op_Equality(TiffSRational left,
                                          TiffSRational right)

        Indicates whether two objects of the same type are equal.

        Parameters:
        left - The left object.
        right - The rigt object.
        Returns:
        True if the objects are equal; otherwise, false.
      • op_Inequality

        public static boolean op_Inequality(TiffSRational left,
                                            TiffSRational right)

        Indicates whether two objects of the same type are not equal.

        Parameters:
        left - The left object.
        right - The rigt object.
        Returns:
        True if the objects are not equal; otherwise, false.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.