/** * Sets the type of the field to access. * @param <T> the generic type of the field type. * @param type the type of the field to access. * @return a recipient for the field type. * @throws NullPointerException if the given type is <code>null</code>. */ public <T> FieldType<T> ofType(Class<T> type) { return newFieldType(name, type, path); }