Enum AccountVisibility

    • Enum Constant Detail

      • ALWAYS_VISIBLE

        public static final AccountVisibility ALWAYS_VISIBLE
        The account is always visible and the owner can't change its visibility.
        This is the behaviour for Cyclos 4.14.
      • DEFAULT_VISIBLE

        public static final AccountVisibility DEFAULT_VISIBLE
        The user account is visible by default but the user can change its visibility.
      • DEFAULT_HIDDEN

        public static final AccountVisibility DEFAULT_HIDDEN
        The user account is hidden by default but the user can change its visibility.
    • Field Detail

      • ALWAYS_VISIBLE_VALUE

        public static final String ALWAYS_VISIBLE_VALUE
    • Method Detail

      • values

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

        public static AccountVisibility 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
      • canConfigure

        public boolean canConfigure()
        Returns whether the account owner can configure the account visibility
      • shouldBeVisible

        public boolean shouldBeVisible()
        Returns whether this visibility means the account is visible