Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.logging.util
Class StringFormat

java.lang.Object
  extended by org.jboss.errai.common.client.logging.util.StringFormat

public class StringFormat
extends Object

A utility class for replacing the String.format(String, Object...) method.

Author:
Max Barkley

Constructor Summary
StringFormat()
           
 
Method Summary
static String format(String format, Object... args)
          This method emulates String.format(String, Object...) with some notable differences: flags are unsupported (and are silently ignored) the 'a' and 'A' conversions are unsupported the other scientific notation flags use NumberFormat and thus produce slightly different output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringFormat

public StringFormat()
Method Detail

format

public static String format(String format,
                            Object... args)
This method emulates String.format(String, Object...) with some notable differences:

Parameters:
format - The format string.
args - The values available for format string conversions.
Returns:
A formatted string, similar to the result of calling String.format(String, Object...) with format and args.
See Also:
String.format(String, Object...)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.