Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
n9Mtq4 committed Apr 8, 2016
1 parent f483d9b commit d7ca14a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/n9mtq4/reflection/ReflectionWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private ReflectionWrapper(E object) {
* @param fieldName the field name
* @return the field
*/
public final <R> R getField(String fieldName) {
public final <R> R get(String fieldName) {
return (R) getObject(fieldName, object);
}

Expand All @@ -87,7 +87,7 @@ public final <R> R getField(String fieldName) {
* @param field the field
* @return the field
*/
public final <R> R getField(Field field) {
public final <R> R get(Field field) {
return (R) getObject(field, object);
}

Expand All @@ -97,7 +97,7 @@ public final <R> R getField(Field field) {
* @param fieldName the field name
* @param newValue the new value of the field
*/
public final void setField(String fieldName, Object newValue) {
public final void set(String fieldName, Object newValue) {
setObject(newValue, fieldName, object);
}

Expand All @@ -107,7 +107,7 @@ public final void setField(String fieldName, Object newValue) {
* @param field the field
* @param newValue the new value of the field
*/
public final void setField(Field field, Object newValue) {
public final void set(Field field, Object newValue) {
setObject(newValue, field, object);
}

Expand All @@ -120,7 +120,7 @@ public final void setField(Field field, Object newValue) {
* @param args the args for the method
* @return the return of the method, null if the method is void
*/
public final <R> R callMethod(String name, Object... args) {
public final <R> R call(String name, Object... args) {
return (R) callObjectMethod(name, object, args);
}

Expand All @@ -133,7 +133,7 @@ public final <R> R callMethod(String name, Object... args) {
* @param args the args for the method
* @return the return of the method, null if the method is void
*/
public final <R> R callMethod(String name, Class[] classParams, Object... args) {
public final <R> R call(String name, Class[] classParams, Object... args) {
return (R) callObjectMethod(name, object, classParams, args);
}

Expand All @@ -145,7 +145,7 @@ public final <R> R callMethod(String name, Class[] classParams, Object... args)
* @param args the args for the method
* @return the return of the method, null if the method is void
*/
public final <R> R callMethod(Method method, Object... args) {
public final <R> R call(Method method, Object... args) {
return (R) callObjectMethod(method, object, args);
}

Expand Down

0 comments on commit d7ca14a

Please sign in to comment.