Class CountableLoadableModel<T>

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<T>>, org.apache.wicket.util.io.IClusterable

    public abstract class CountableLoadableModel<T>
    extends LoadableModel<List<T>>
    A loadable model of a list that knows how to provide count of list items without having to retrieve the actual data. Useful e.g. to implement MID-3938 (Optimize midPoint for many focus assignments).
    See Also:
    Serialized Form
    • Constructor Detail

      • CountableLoadableModel

        public CountableLoadableModel()
      • CountableLoadableModel

        public CountableLoadableModel​(boolean alwaysReload)
    • Method Detail

      • count

        public int count()
      • countInternal

        public int countInternal()