Java String Format str(final String messageFormat, final Object... args)

Here you can find the source of str(final String messageFormat, final Object... args)

Description

Convenience shortcut for MessageFormat#format(String,Object) .

License

Open Source License

Declaration

public static String str(final String messageFormat, final Object... args) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.MessageFormat;

public class Main {
    /**/*from   w w w  .ja va  2  s .  com*/
     * Convenience shortcut for {@link MessageFormat#format(String, Object...)}.  Great for static imports.
     */
    public static String str(final String messageFormat, final Object... args) {

        return MessageFormat.format(messageFormat, args);
    }
}

Related

  1. getStylingHyphenFormat(String cssProperties)
  2. getTextAsFormattedLines(String text, int lineLength)
  3. getWriterByFormat(final String format)
  4. isDurationFormatPattern(String formatPattern)
  5. isQueryInFormat(String in)
  6. StrFormat(String pattern, Object... arguments)
  7. stringFormat(String pattern, Object[] arguments)
  8. stringFormat(String textPattern, Object... args)