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

org.rythmengine.extension.IFormatter Maven / Gradle / Ivy

Go to download

A strong typed high performance Java Template engine with .Net Razor like syntax

There is a newer version: 1.4.2
Show newest version
/**
 * Copyright (C) 2013-2016 The Rythm Engine project
 * for LICENSE and other details see:
 * https://github.com/rythmengine/rythmengine
 */
package org.rythmengine.extension;

import java.util.Locale;

/**
 * Created by luog on 2/01/14.
 */
public interface IFormatter {
    /**
     * Try to format the object. If the formatter does not recongize the object, then
     * {@code null} shall be returned immediately
     *
     * @param val the value object to be formatted
     * @param pattern the pattern to format the object
     * @param locale current locale
     * @param timezone current timezone
     * @return the formatted string from the value
     */
    String format(Object val, String pattern, Locale locale, String timezone);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy