Description
There is a Model.of(T object), but in Guava style, I'd like to see a Model.of() which would basically do the same thing as the default constructor (and in fact just delegate to it) but would give the developer the benefit of generic type inference:
public static <T extends Serializable> Model<T> of() { return new Model<T>(); }
This is especially useful for long generic types:
IModel<Collection<? extends MyModelObject>> myModel = new Model<Collection<? extends MyModelObject>>(); IModel<Collection<? extends MyModelObject>> myModel = Model.of();