Enum AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR
- java.lang.Object
-
- java.lang.Enum<AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
-
- com.atlassian.confluence.search.v2.extractor.util.AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
- Enclosing class:
- AbstractLengthLimitedStringBuilder
public static enum AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR extends Enum<AbstractLengthLimitedStringBuilder.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 AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractLengthLimitedStringBuilder.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 AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR THROW
Throw an exception when the limit is reached. Not all the available capacity will be used.
-
SILENT
public static final AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR SILENT
Silently discard appending if it goes above the limit. All the available capacity will be used.
-
-
Method Detail
-
values
public static AbstractLengthLimitedStringBuilder.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 (AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR c : AbstractLengthLimitedStringBuilder.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 AbstractLengthLimitedStringBuilder.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
-
-