org.silverpeas.quota.constant
Enum QuotaLoad
java.lang.Object
java.lang.Enum<QuotaLoad>
org.silverpeas.quota.constant.QuotaLoad
- All Implemented Interfaces:
- Serializable, Comparable<QuotaLoad>
public enum QuotaLoad
- extends Enum<QuotaLoad>
- Author:
- Yohann Chastagnier
Method Summary |
static QuotaLoad |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static QuotaLoad[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
UNLIMITED
public static final QuotaLoad UNLIMITED
EMPTY
public static final QuotaLoad EMPTY
NOT_FULL
public static final QuotaLoad NOT_FULL
FULL
public static final QuotaLoad FULL
NOT_ENOUGH
public static final QuotaLoad NOT_ENOUGH
OUT_OF_BOUNDS
public static final QuotaLoad OUT_OF_BOUNDS
values
public static QuotaLoad[] 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 (QuotaLoad c : QuotaLoad.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static QuotaLoad 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
Copyright © 2016 Silverpeas. All Rights Reserved.