com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class EventCategory

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


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

    Represents category for an event

    • Field Detail

      • CUSTOM_VALUE

        public static final String CUSTOM_VALUE

        String value for 'Custom' category

      • BIRTHDAY_VALUE

        public static final String BIRTHDAY_VALUE

        String value for 'Birthday' category

      • ANNIVERSARY_VALUE

        public static final String ANNIVERSARY_VALUE

        String value for 'Anniversary' category

    • Constructor Detail

      • EventCategory

        public EventCategory(String description)

        Initializes a new instance of the 'Custom' EventCategory.

        Parameters:
        description - Description for the 'Custom' category of an event
    • Method Detail

      • getBirthday

        public static EventCategory getBirthday()

        Birthday

      • getAnniversary

        public static EventCategory getAnniversary()

        Anniversary

      • getCustom

        public static EventCategory getCustom()

        Custom description

      • getValue

        public final String getValue()

        Gets string representation of an event category

      • getDescription

        public final String getDescription()

        Gets description for the 'Custom' category of an event

      • 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.

        Specified by:
        equals in interface com.aspose.ms.System.IEquatable<EventCategory>
        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(EventCategory a,
                          EventCategory 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(EventCategory a,
                            EventCategory 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.
      • equals

        public boolean equals(EventCategory other)

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

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