org.jboss.errai.common.client.logging.util
Class StringFormat
java.lang.Object
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
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 |
StringFormat
public StringFormat()
format
public 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
- 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...)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.