Class MapProxy<K,​V>

  • All Implemented Interfaces:
    Serializable, Map<K,​V>, org.hibernate.collection.spi.LazyInitializable

    public class MapProxy<K,​V>
    extends Object
    implements Map<K,​V>, org.hibernate.collection.spi.LazyInitializable, Serializable
    Author:
    Adam Warski (adam at warski dot org)
    See Also:
    Serialized Form
    • Field Detail

      • delegate

        protected Map<K,​V> delegate
    • Constructor Detail

      • MapProxy

        public MapProxy()
    • Method Detail

      • wasInitialized

        public final boolean wasInitialized()
        Specified by:
        wasInitialized in interface org.hibernate.collection.spi.LazyInitializable
      • forceInitialization

        public final void forceInitialization()
        Specified by:
        forceInitialization in interface org.hibernate.collection.spi.LazyInitializable
      • size

        public int size()
        Specified by:
        size in interface Map<K,​V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<K,​V>
      • get

        public V get​(Object o)
        Specified by:
        get in interface Map<K,​V>
      • put

        public V put​(K k,
                     V v)
        Specified by:
        put in interface Map<K,​V>
      • putAll

        public void putAll​(Map<? extends K,​? extends V> map)
        Specified by:
        putAll in interface Map<K,​V>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<K,​V>
      • keySet

        public Set<K> keySet()
        Specified by:
        keySet in interface Map<K,​V>