Class ChangeAwareMaps

    • Method Detail

      • of

        public static <K,​V> ChangeAwareMap<K,​V> of​(int capacity)
        Type Parameters:
        K - type of the keys.
        V - type of the values.
        Parameters:
        capacity - the initial capacity of the map.
        Returns:
        a new empty mutable ChangeAwareMap.
      • of

        public static <K,​V> ChangeAwareMap<K,​V> of​(Map<K,​V> map)
        Type Parameters:
        K - type of the keys.
        V - type of the values.
        Parameters:
        map - the existing Set implementation to wrap as ChangeAwareMap. Please avoid to modify this Map afterwards, as this will not trigger modification events.
        Returns:
        a new empty mutable ChangeAwareMap.
      • ofUnmodifiable

        public static <K,​V> ChangeAwareMap<K,​V> ofUnmodifiable​(Map<K,​V> map)
        Type Parameters:
        K - type of the keys.
        V - type of the values.
        Parameters:
        map - the existing Map implementation to wrap as ChangeAwareMap. Please avoid to modify this Map afterwards, as this will not trigger modification events.
        Returns:
        a new empty mutable ChangeAwareList.