public static Object getValueOfField(Field field, Object ref) {
		field.setAccessible(true);
		Object value = null;
		try {
			value = field.get(ref);
		} catch (IllegalArgumentException e) {
		} catch (IllegalAccessException e) {
		}
		return value;
	}
public static Object getValueOfField ( Field field , Object ref ) { field . setAccessible ( true ) ; Object value = null ; try { value = field . get ( ref ) ; } catch ( IllegalArgumentException e ) { } catch ( IllegalAccessException e ) { } return value ; }
<p>
getValueOfField.
</p>

@param field
a {@link java.lang.reflect.Field} object.
@param ref
a {@link java.lang.Object} object.
@return a {@link java.lang.Object} object.