Enum ActivityFlag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ActivityFlag>

    public enum ActivityFlag
    extends java.lang.Enum<ActivityFlag>
    • Method Detail

      • values

        public static ActivityFlag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ActivityFlag c : ActivityFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ActivityFlag valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getActivityFlagById

        public static ActivityFlag getActivityFlagById​(int flags)
        Gets the activity flag of the given integer value.
        Parameters:
        flags - The integer value of the flag.
        Returns:
        The activity flag of the given integer value.
      • asInt

        public int asInt()
        Gets the integer value of the activity flag.
        Returns:
        Gets the integer value of the activity flag.