getter.java
来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 30 行
JAVA
30 行
//$Id: Getter.java,v 1.1.2.2 2003/09/13 16:42:25 oneovthafew Exp $
package net.sf.hibernate.property;
import java.lang.reflect.Method;
import net.sf.hibernate.HibernateException;
/**
* Gets values of a particular property
* @author Gavin King
*/
public interface Getter {
/**
* Get the property value from the given instance
*/
public Object get(Object target) throws HibernateException;
/**
* Get the declared Java type
*/
public Class getReturnType();
/**
* Optional operation (return null)
*/
public String getMethodName();
/**
* Optional operation (return null)
*/
public Method getMethod();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?