com.groupdocs.conversion.contracts

Class Enumeration

    • Method Detail

      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        String representation
      • getAll

        public static <T extends EnumerationList getAll(Class<T> typeOfT)

        Returns all enumeration values.

        Returns:
        Enumerable of the provided type

        T: Enumerated object type.

      • equals

        public boolean equals(Object obj)

        Determines whether two object instances are equal.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<Enumeration>
        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 boolean equals(Enumeration 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.
      • fromValue

        public static <T extends Enumeration> T fromValue(Class<T> typeOfT,
                                                          String value)

        Returns object by key.

        Parameters:
        value - The value
        Returns:
        The object
      • fromDisplayName

        public static <T extends Enumeration> T fromDisplayName(Class<T> typeOfT,
                                                                String displayName)

        Returns object by display name.

        Parameters:
        displayName - The display name
        Returns:
        The object
      • compareTo

        public final int compareTo(Object obj)

        Compares current object to other.

        Specified by:
        compareTo in interface Comparable
        Parameters:
        obj - The other object
        Returns:
        zero if equal
      • op_Equality

        public static boolean op_Equality(Enumeration left,
                                          Enumeration right)

        Equality operator.

        Parameters:
        left - The first object
        right - The second object
        Returns:
        true if objects are equal
      • op_Inequality

        public static boolean op_Inequality(Enumeration left,
                                            Enumeration right)

        Inequality operator.

        Parameters:
        left - The first object
        right - The second object
        Returns:
        true if objects are not equal