Package com.atlassian.confluence.util
Enum LengthLimitedStringBuilder.LIMIT_BEHAVIOUR
- java.lang.Object
-
- java.lang.Enum<LengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
-
- com.atlassian.confluence.util.LengthLimitedStringBuilder.LIMIT_BEHAVIOUR
-
- All Implemented Interfaces:
Serializable
,Comparable<LengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
- Enclosing class:
- LengthLimitedStringBuilder
public static enum LengthLimitedStringBuilder.LIMIT_BEHAVIOUR extends Enum<LengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
Behaviour of the string builder when the limit is reached.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LengthLimitedStringBuilder.LIMIT_BEHAVIOUR
valueOf(String name)
Returns the enum constant of this type with the specified name.static LengthLimitedStringBuilder.LIMIT_BEHAVIOUR[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW
public static final LengthLimitedStringBuilder.LIMIT_BEHAVIOUR THROW
Throw an exception when the limit is reached. Not all the available capacity will be used.
-
SILENT
public static final LengthLimitedStringBuilder.LIMIT_BEHAVIOUR SILENT
Silently discard appending if it goes above the limit. All the available capacity will be used.
-
-
Method Detail
-
values
public static LengthLimitedStringBuilder.LIMIT_BEHAVIOUR[] 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 (LengthLimitedStringBuilder.LIMIT_BEHAVIOUR c : LengthLimitedStringBuilder.LIMIT_BEHAVIOUR.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LengthLimitedStringBuilder.LIMIT_BEHAVIOUR 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 nameNullPointerException
- if the argument is null
-
-