In Java,
Integer is an object and can be set to null whereas
int is a primitive and cannot be set to null.
In RequestFactory only the wrapped versions of primitives (= objects) are allowed. So you might use Boolean and Integer but not boolean and int. In GWT you can use both but does is affect the generated JavaScript code whether you use Integer or int?