com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class TiffRational

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


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

    Represents a rational number.

    • Constructor Detail

      • TiffRational

        public TiffRational(long numerator,
                            long denominator)

        Initializes a new instance of the TiffRational class.

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

      • getNumerator

        public final long getNumerator()

        Gets the numerator.

        Returns:
        The numerator.
      • getDenominator

        public final long getDenominator()

        Gets the denominator.

        Returns:
        The denominator.
      • getValue

        public final double getValue()

        Gets the rational value.

        Returns:
        The rational value.
      • equals

        public static boolean equals(TiffRational rational,
                                     TiffRational other)

        Compares a pair of TiffRational numbers.

        Parameters:
        rational - A rational number.
        other - Another rational number.
        Returns:
        true if the objects are equal; otherwise, false.
      • equals

        public final boolean equals(TiffRational 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<TiffRational>
        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(TiffRational left,
                                          TiffRational 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(TiffRational left,
                                            TiffRational right)

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

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

        public String toString()

        Returns a string that represents this instance.

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