java.lang.Object
java.text.Format
java.text.MessageFormat
com.aoapps.lang.text.UnmodifiableMessageFormat
- All Implemented Interfaces:
Serializable,Cloneable
A MessageFormat that may not be modified. This allows the message format to be
cached while avoiding any accidental change of the cached object.
- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.text.MessageFormat
MessageFormat.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPattern(String pattern) voidvoidsetFormatByArgumentIndex(int argumentIndex, Format newFormat) voidsetFormats(Format[] newFormats) voidsetFormatsByArgumentIndex(Format[] newFormats) voidMethods inherited from class java.text.MessageFormat
clone, equals, format, format, format, formatToCharacterIterator, getFormats, getFormatsByArgumentIndex, getLocale, hashCode, parse, parse, parseObject, toPatternMethods inherited from class java.text.Format
format, parseObject
-
Constructor Details
-
UnmodifiableMessageFormat
-
-
Method Details
-
setLocale
- Overrides:
setLocalein classMessageFormat- Throws:
UnsupportedOperationException- always
-
applyPattern
- Overrides:
applyPatternin classMessageFormat- Throws:
UnsupportedOperationException- except when called from constructor.
-
setFormatsByArgumentIndex
- Overrides:
setFormatsByArgumentIndexin classMessageFormat- Throws:
UnsupportedOperationException- always
-
setFormats
- Overrides:
setFormatsin classMessageFormat- Throws:
UnsupportedOperationException- always
-
setFormatByArgumentIndex
public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) throws UnsupportedOperationException - Overrides:
setFormatByArgumentIndexin classMessageFormat- Throws:
UnsupportedOperationException- always
-
setFormat
public void setFormat(int formatElementIndex, Format newFormat) throws UnsupportedOperationException - Overrides:
setFormatin classMessageFormat- Throws:
UnsupportedOperationException- always
-
