formatkit.java
来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 41 行
JAVA
41 行
package com.esri.solutions.jitk.web.data.results;
import java.util.Locale;
public interface FormatKit {
/**
* 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 or value.toString() if
* no formatter was found that can handle the specified value
*/
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 or value.toString() if
* no formatter was found that can handle the specified value
*/
public String format(Object value);
/**
* Return an array of formats that can be used to format objects that
* are instances of the specified types.
*
* @param types array of {@link Class} to be formatted
*
* @return an array of formats appropriate for the specified types
*/
@SuppressWarnings("unchecked")
public ValueFormat[] getFormats(Class[] types);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?