git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
support
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
reflection
/
FieldAccessor.java
diff --git
a/support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java
b/support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java
index bbc0a437791b129582760dc2e604b8e184f38ef6..1df4169f1a146f0839e0f6ce05f9968466412335 100644
(file)
--- a/
support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java
+++ b/
support/general/src/main/java/org/wamblee/reflection/FieldAccessor.java
@@
-17,20
+17,22
@@
package org.wamblee.reflection;
import java.lang.reflect.Field;
import java.lang.reflect.Field;
-
/**
/**
- * Utility for interfacing to a field of an object.
+ * Utility for interfacing to a field of an object.
*
* @author Erik Brakkee
*
* @author Erik Brakkee
- *
- * @param <T> Type of the field.
+ *
+ * @param <T>
+ * Type of the field.
*/
public class FieldAccessor<T> implements Accessor<T> {
private Field field;
/**
*/
public class FieldAccessor<T> implements Accessor<T> {
private Field field;
/**
- * Constructs the accessor.
- * @param aField Field.
+ * Constructs the accessor.
+ *
+ * @param aField
+ * Field.
*/
public FieldAccessor(Field aField) {
field = aField;
*/
public FieldAccessor(Field aField) {
field = aField;
@@
-57,20
+59,21
@@
public class FieldAccessor<T> implements Accessor<T> {
}
/**
}
/**
- * Gets the field.
- * @return Field.
+ * Gets the field.
+ *
+ * @return Field.
*/
public Field getField() {
return field;
}
*/
public Field getField() {
return field;
}
-
+
@Override
public Class<T> getType() {
@Override
public Class<T> getType() {
- return (Class<T>)field.getType();
+ return (Class<T>)
field.getType();
}
}
-
+
@Override
public String toString() {
@Override
public String toString() {
- return "fieldInjection(" + field + ")";
+ return "fieldInjection(" + field + ")";
}
}
\ No newline at end of file
}
}
\ No newline at end of file