com.groupdocs.conversion.contracts

Class ValueObject

    • Constructor Detail

      • ValueObject

        public ValueObject()
    • Method Detail

      • getEqualityComponents

        protected abstract Iterable getEqualityComponents()

        Gets equality components.

        Returns:
        Collection of objects.
      • equals

        public boolean equals(Object obj)

        Determines whether two object instances are equal.

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

        public final boolean equals(ValueObject other)

        Determines whether two object instances are equal.

        Parameters:
        other - The object to compare with the current object.
        Returns:
        true if the specified object is equal to the current object; otherwise, false.
      • hashCode

        public int hashCode()

        Serves as the default hash function.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for the current object.
      • op_Equality

        public static boolean op_Equality(ValueObject a,
                          ValueObject b)

        Equality operator.

        Parameters:
        a - The first object
        b - The second object
        Returns:
        true if objects are equal
      • op_Inequality

        public static boolean op_Inequality(ValueObject a,
                            ValueObject b)

        Inequality operator.

        Parameters:
        a - The first object
        b - The second object
        Returns:
        true if objects are not equal