Class ChangeAwareLists

    • Method Detail

      • of

        public static <E> ChangeAwareList<E> of​(int capacity)
        Type Parameters:
        E - the type of the elements.
        Parameters:
        capacity - the initial capacity of the list.
        Returns:
        a new empty mutable ChangeAwareList.
      • of

        public static <E> ChangeAwareList<E> of​(List<E> list)
        Type Parameters:
        E - the type of the elements.
        Parameters:
        list - the existing List implementation to wrap as ChangeAwareList. Please avoid to modify this List afterwards, as this will not trigger modification events.
        Returns:
        a new empty mutable ChangeAwareList.
      • ofUnmodifiable

        public static <E> ChangeAwareList<E> ofUnmodifiable​(List<E> list)
        Type Parameters:
        E - the type of the elements.
        Parameters:
        list - the existing List implementation to wrap as ChangeAwareList. Please avoid to modify this List afterwards, as this will not trigger modification events.
        Returns:
        a new empty mutable ChangeAwareList.