net.jangaroo.jooc.util
Class MessageFormat
java.lang.Object
net.jangaroo.jooc.util.MessageFormat
public class MessageFormat
- extends Object
A better MessageFormat that takes an arbitrary number of parameters.
This is to avoid a pitfall in the original MessageFormat: if you call Format.format(Object)
you'd assume that the parameter is a single argument. Instead, it has to be an Object[] like
in the old times. This is unintuitive, as MessageFormat.format(String, Object...)
works in the modern way.
- See Also:
MessageFormat
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageFormat
public MessageFormat(String pattern)
format
public String format(Object... arguments)
Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.