valueformat.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 42 行

JAVA
42
字号
package com.esri.solutions.jitk.web.data.results;

import java.util.Locale;

public interface ValueFormat {

    /**
     * Return whether this formatter can format the specified value. The 
     * {@link FormatKit} will format a given value using the first formatter 
     * that can format the value. 
     * 
     * @param type the type to be formatted
     * @return true if this formatter knows how to format the specified value.
     */
    @SuppressWarnings("unchecked")
	public boolean canFormat(Class type);
        
    /**
     * Return the formatted text representation of the specified object.
     * 
     * @param value the unformatted object
     * @param locale the locale that determines the formatting
     * 
     * @return the formatted string representation
     * 
     * @throws ClassCastException
     */
    public String format(Object value, Locale locale);
    
    /**
     * Return the formatted text representation of the specified object
     * using the default locale.
     * 
     * @param value the unformatted object
     * 
     * @return the formatted string representation
     * 
     * @throws ClassCastException
     */
    public String format(Object value);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?