Package org.jivesoftware.smack.util
Enum XmlStringBuilder.AppendApproach
java.lang.Object
java.lang.Enum<XmlStringBuilder.AppendApproach>
org.jivesoftware.smack.util.XmlStringBuilder.AppendApproach
- All Implemented Interfaces:
Serializable,Comparable<XmlStringBuilder.AppendApproach>
- Enclosing class:
XmlStringBuilder
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf the given CharSequence is aXmlStringBuilderorLazyStringBuilder, then copy the references of the lazy strings parts into this builder.Simply add the given CharSequence to this builder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static XmlStringBuilder.AppendApproach[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SINGLE
Simply add the given CharSequence to this builder. -
FLAT
If the given CharSequence is aXmlStringBuilderorLazyStringBuilder, then copy the references of the lazy strings parts into this builder. This approach flattens the string builders into one, yielding a different performance characteristic.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-