converter.java
来自「pojo的mvc框架」· Java 代码 · 共 34 行
JAVA
34 行
package xyz.frame.converter;import xyz.frame.LogicRequest;/** * Basic converter. * * @author Guilherme Silveira */public interface Converter { /** * Converts a value to an specific type * * @param value * current value * @param type * desired type * @return the converted value * @throws ConversionException * some convertion problem hapenned */ public Object convert(String value, Class<?> type, LogicRequest context) throws ConversionException; /** * Returns the list of supported types * * @return array of supported types */ public Class<?>[] getSupportedTypes();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?