IT. Expert System.

Android Reference

Formattable


java.util

Interface Formattable



  • public interface Formattable
    Classes that handle custom formatting for the 's' specifier of Formatter should implement the Formattable interface. It gives basic control over formatting objects.
    See Also:
    Formatter
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void formatTo(Formatter formatter, int flags, int width, int precision)
      Formats the object using the specified Formatter.
    • Method Detail

      • formatTo

        void formatTo(Formatter formatter,
                    int flags,
                    int width,
                    int precision)
                      throws IllegalFormatException
        Formats the object using the specified Formatter.
        Parameters:
        formatter - the Formatter to use.
        flags - the flags applied to the output format, which is a bitmask that is any combination of FormattableFlags.LEFT_JUSTIFY, FormattableFlags.UPPERCASE, and FormattableFlags.ALTERNATE. If no such flag is set, the output is formatted by the default formatting of the implementation.
        width - the minimum number of characters that should be written to the output. If the length of the converted value is less than width Additional space characters (' ') are added to the output if the as needed to make up the difference. These spaces are added at the beginning by default unless the flag FormattableFlags.LEFT_JUSTIFY is set, which denotes that padding should be added at the end. If width is -1, then minimum length is not enforced.
        precision - the maximum number of characters that can be written to the output. The length of the output is trimmed down to this size before the width padding is applied. If the precision is -1, then maximum length is not enforced.
        Throws:
        IllegalFormatException - if any of the parameters is not supported.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3070 / . Delta: 0.00543 с