com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class UrlCategory



  • public class UrlCategory
    extends Object

    Represents category for a URL

    • Constructor Detail

      • UrlCategory

        public UrlCategory(String description)

        Initializes a new instance of the UrlCategory class with 'Custom' category.

        Parameters:
        description - Description for the 'Custom' category of a URL
    • Method Detail

      • getProfile

        public static UrlCategory getProfile()

        Profile URL

      • getHomePage

        public static UrlCategory getHomePage()

        Home page URL

      • getHome

        public static UrlCategory getHome()

        Contact's home-related site.

      • getWork

        public static UrlCategory getWork()

        Contact's work-related site.

      • getBlog

        public static UrlCategory getBlog()

        Blog URL

      • getCustom

        public static UrlCategory getCustom()

        Custom page URL

      • getValue

        public String getValue()

        Gets category of a URL

      • getDescription

        public String getDescription()

        Gets description for the 'Custom' category of 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.
      • 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.
      • op_Equality

        public static boolean op_Equality(UrlCategory a,
                          UrlCategory 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(UrlCategory a,
                            UrlCategory 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.