package org.wamblee.reflection;
/**
- * Abstraction for accessing fields or properties of an object.
+ * Abstraction for accessing fields or properties of an object.
*
* @author Erik Brakkee
- *
+ *
* @param <T>
*/
public interface Accessor<T> {
/**
- * Sets the value.
- * @param aObject Object.
- * @param aValue Value.
+ * Sets the value.
+ *
+ * @param aObject
+ * Object.
+ * @param aValue
+ * Value.
*/
void set(Object aObject, T aValue);
/**
* Gets the value.
- * @param aObject Object
+ *
+ * @param aObject
+ * Object
* @return Value
*/
T get(Object aObject);
-}
+ /**
+ * Gets the type of the value.
+ *
+ * @return
+ */
+ Class<T> getType();
+}