Format (Java SE 26 & JDK 26)
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
DateFormat, ListFormat, MessageFormat, NumberFormat
-
Nested Class Summary
Nested Classes
static classDefines constants that are used as attribute keys in the
AttributedCharacterIteratorreturned fromFormat.formatToCharacterIteratorand as field identifiers inFieldPosition. -
Constructor Summary
Constructors
-
Method Summary
clone()Creates and returns a copy of this object.
Formats an object to produce a string.
Formats an object and appends the resulting text to a given string buffer.
Formats an Object producing an
AttributedCharacterIterator.Parses text from the beginning of the given string to produce an object.
Parses text from the given string to produce an object.
Methods declared in class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbooleanIndicates whether some other object is "equal to" this one.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.intReturns a hash code value for this object.
final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
Returns a string representation of the object.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
Format
-
-
Method Details
-
format
-
format
-
formatToCharacterIterator
-
parseObject
-
parseObject
-
clone
-