Uses of Class
java.text.Format
Package
Description
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
Provides classes to print and parse dates and times.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Format in java.text
Modifier and TypeClassDescriptionclass
AChoiceFormat
allows you to attach a format to a range of numbers.class
CompactNumberFormat
is a concrete subclass ofNumberFormat
that formats a decimal number in its compact form.class
DateFormat
is an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.class
DecimalFormat
is a concrete subclass ofNumberFormat
that formats decimal numbers.class
MessageFormat
provides a means to produce concatenated messages in a language-neutral way.class
NumberFormat
is the abstract base class for all number formats.class
SimpleDateFormat
is a concrete class for formatting and parsing dates in a locale-sensitive manner.Modifier and TypeMethodDescriptionFormat[]
MessageFormat.getFormats()
Gets the formats used for the format elements in the previously set pattern string.Format[]
MessageFormat.getFormatsByArgumentIndex()
Gets the formats used for the values passed intoformat
methods or returned fromparse
methods.Modifier and TypeMethodDescriptionvoid
Sets the format to use for the format element with the given format element index within the previously set pattern string.void
MessageFormat.setFormatByArgumentIndex(int argumentIndex, Format newFormat)
Sets the format to use for the format elements within the previously set pattern string that use the given argument index.void
MessageFormat.setFormats(Format[] newFormats)
Sets the formats to use for the format elements in the previously set pattern string.void
MessageFormat.setFormatsByArgumentIndex(Format[] newFormats)
Sets the formats to use for the values passed intoformat
methods or returned fromparse
methods. -
Uses of Format in java.time.format
Modifier and TypeMethodDescriptionDateTimeFormatter.toFormat()
Returns this formatter as ajava.text.Format
instance.DateTimeFormatter.toFormat(TemporalQuery<?> parseQuery)
Returns this formatter as ajava.text.Format
instance that will parse using the specified query. -
Uses of Format in javax.swing
-
Uses of Format in javax.swing.text
Modifier and TypeMethodDescriptionInternationalFormatter.getFormat()
Returns the format that dictates the legal values that can be edited and displayed.Modifier and TypeMethodDescriptionvoid
Sets the format that dictates the legal values that can be edited and displayed.void
Sets the format that dictates the legal values that can be edited and displayed.ModifierConstructorDescriptionInternationalFormatter(Format format)
Creates anInternationalFormatter
with the specifiedFormat
instance.