XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.9
    • 1.4.10, 1.5-M1
    • wicket
    • None

    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();
      

      Attachments

        Activity

          People

            jthomerson Jeremy Thomerson
            lhunath Maarten Billemont
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: