Enum SubscriberType

    • Enum Constant Detail

      • UNKNOWN

        public static final SubscriberType UNKNOWN
        The type is unknown. Assimilable to nothing.
      • USER

        public static final SubscriberType USER
        The subscriber is a user.
      • GROUP

        public static final SubscriberType GROUP
        The subscriber is a group of users.
    • Method Detail

      • values

        public static SubscriberType[] 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 (SubscriberType c : SubscriberType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubscriberType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isValid

        public boolean isValid()
        Is this type is valid? It is valid if the type of the subscriber isn't unknown.
        Returns:
        true if the type of the subscriber is known, false otherwise.
      • getName

        public String getName()
      • getValidValues

        public static Collection<SubscriberType> getValidValues()
        All subscriber types are returned into a collection excepted the UNKNOWN one.
        Returns:
        a collection of all of the valid subscriber types.