Enum Class 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>
,Constable
- Enclosing class:
- AbstractLengthLimitedStringBuilder
public static enum AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR
extends Enum<AbstractLengthLimitedStringBuilder.LIMIT_BEHAVIOUR>
Behaviour of the string builder when the limit is reached.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THROW
Throw an exception when the limit is reached. Not all the available capacity will be used. -
SILENT
Silently discard appending if it goes above the limit. All the available capacity will be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-