com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Url

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.IEqualityComparer, Comparable


    public class Url
    extends Object
    implements Comparable, com.aspose.ms.System.Collections.IEqualityComparer

    Objects represents a URL and its category.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Url() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int compareTo(Object obj)
      Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
      boolean equals(Object obj)
      Determines whether the specified Object is equal to the current Object.
      boolean equals(Object a, Object b)
      Determines whether the specified object instances are considered equal.
      UrlCategory getCategory()
      Gets or sets an object category
      String getHref()
      Gets or sets a URL
      boolean getPrefered()
      Gets or sets a value which defines whether object is preferred.
      int hashCode()
      GetHashCode returns a hash function for this object.
      int hashCode(Object obj)
      GetHashCode returns a hash function for specified object.
      static boolean op_Equality(Url a, Url b)
      Determines whether the specified objects are equal.
      static boolean op_Inequality(Url a, Url b)
      Determines whether the specified objects are not equal.
      void setCategory(UrlCategory value)
      Gets or sets an object category
      void setHref(String value)
      Gets or sets a URL
      void setPrefered(boolean value)
      Gets or sets a value which defines whether object is preferred.
      String toString()
      Returns a string that represents the current object.
    • Constructor Detail

      • Url

        public Url()
    • Method Detail

      • getPrefered

        public boolean getPrefered()

        Gets or sets a value which defines whether object is preferred.

      • setPrefered

        public void setPrefered(boolean value)

        Gets or sets a value which defines whether object is preferred.

      • getCategory

        public UrlCategory getCategory()

        Gets or sets an object category

      • setCategory

        public void setCategory(UrlCategory value)

        Gets or sets an object category

      • getHref

        public String getHref()

        Gets or sets a URL

      • setHref

        public void setHref(String value)

        Gets or sets a URL

      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        Returns a string that represents the current object.
      • hashCode

        public int hashCode()

        GetHashCode returns a hash function for this object.

        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash function for this object.
      • hashCode

        public int hashCode(Object obj)

        GetHashCode returns a hash function for specified object.

        Specified by:
        hashCode in interface com.aspose.ms.System.Collections.IEqualityComparer
        Parameters:
        obj - The Object for which a hash code is to be returned.
        Returns:
        Returns a hash function for specified object.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to the current Object.

        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with the current Object.
        Returns:
        Returns a boolean indicating if the passed in object obj is Equal to this.
      • equals

        public boolean equals(Object a,
                     Object b)

        Determines whether the specified object instances are considered equal.

        Specified by:
        equals in interface com.aspose.ms.System.Collections.IEqualityComparer
        Parameters:
        a - The first object to compare.
        b - The second object to compare.
        Returns:
        true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
      • op_Equality

        public static boolean op_Equality(Url a,
                          Url b)

        Determines whether the specified objects are equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are equal, otherwise false.
      • op_Inequality

        public static boolean op_Inequality(Url a,
                            Url b)

        Determines whether the specified objects are not equal.

        Parameters:
        a - First object to compare
        b - Second object to compare
        Returns:
        Returns true if objects are not equal, otherwise false.
      • compareTo

        public int compareTo(Object obj)

        Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

        Specified by:
        compareTo in interface Comparable
        Parameters:
        obj - An object to compare with this instance, or null.
        Returns:
        This method returns: a value less than 0 if this is less than value 0 if this is equal to value a value greater than 0 if this is greater than value