net.jangaroo.jooc.util
Class MessageFormat

java.lang.Object
  extended by 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

Constructor Summary
MessageFormat(String pattern)
           
 
Method Summary
 String format(Object... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageFormat

public MessageFormat(String pattern)
Method Detail

format

public String format(Object... arguments)


Copyright © 2002–2014 CoreMedia AG. All rights reserved.