humanize.icu.spi.MessageFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of humanize-icu Show documentation
Show all versions of humanize-icu Show documentation
International Components for Unicode support
package humanize.icu.spi;
import java.util.Locale;
/**
* Adds syntactic sugar methods to avoid explicit array creation for arguments.
*
* @author mfornos
*
*/
public class MessageFormat extends com.ibm.icu.text.MessageFormat {
private static final long serialVersionUID = -5384364921909539710L;
public MessageFormat(String pattern) {
super(pattern);
}
public MessageFormat(String pattern, Locale locale) {
super(pattern, locale);
}
public String render(Object... arguments) {
return format(arguments);
}
public StringBuffer render(StringBuffer buffer, Object... arguments) {
return format(arguments, buffer, null);
}
}