Class MapModel<K,​V>

  • Type Parameters:
    K - map's key type
    V - map's value type
    All Implemented Interfaces:
    java.io.Serializable, IDetachable, IModel<java.util.Map<K,​V>>, IObjectClassAwareModel<java.util.Map<K,​V>>, org.apache.wicket.util.io.IClusterable

    public class MapModel<K,​V>
    extends GenericBaseModel<java.util.Map<K,​V>>
    Based on Model but for maps of serializable objects.
    Author:
    Timo Rantalaiho
    See Also:
    Serialized Form
    • Constructor Detail

      • MapModel

        public MapModel()
        Creates empty model
      • MapModel

        public MapModel​(java.util.Map<K,​V> map)
        Creates model that will contain map
        Parameters:
        map -
    • Method Detail

      • createSerializableVersionOf

        protected java.util.Map<K,​V> createSerializableVersionOf​(java.util.Map<K,​V> object)
        Description copied from class: GenericBaseModel
        Creates a serializable version of the object. The object is usually a collection.
        Specified by:
        createSerializableVersionOf in class GenericBaseModel<java.util.Map<K,​V>>
        Returns:
        serializable version of object