chore: added (restored?) setType with Class object to FieldProxy

This commit is contained in:
zaaarf 2023-03-25 21:38:12 +01:00
parent b8cd398fd5
commit f2303ce943
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -86,6 +86,15 @@ public class FieldProxy extends AbstractProxy {
return this.setParent(parentFQN, 0); return this.setParent(parentFQN, 0);
} }
/**
* @param clazz the {@link Class} corresponding to the element
* @return the current state of the builder
*/
public Builder setType(Class<?> clazz) {
super.setType(Type.getType(clazz));
return this;
}
/** /**
* Builds a {@link FieldProxy} of the given kind. * Builds a {@link FieldProxy} of the given kind.
* @return the built {@link FieldProxy} * @return the built {@link FieldProxy}