All Downloads are FREE. Search and download functionalities are using the official Maven repository.

humanize.icu.spi.MessageFormat Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package humanize.icu.spi;

import java.util.Locale;

/**
 * Convenience 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);

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy