Class LiveArrayList<E>

    • Field Detail

      • list

        private java.util.List<E> list
    • Constructor Detail

      • LiveArrayList

        public LiveArrayList()
      • LiveArrayList

        public LiveArrayList​(java.util.Collection<? extends E> c)
      • LiveArrayList

        @SafeVarargs
        public LiveArrayList​(E... initialElements)
    • Method Detail

      • size

        public int size()
      • get

        public E get​(int index)
      • set

        public E set​(int index,
                     E element)
      • setAll

        public boolean setAll​(java.util.Collection<? extends E> c)
      • setAll

        @SafeVarargs
        public final boolean setAll​(E... elems)
      • add

        public void add​(int index,
                        E element)
      • add

        public boolean add​(E e)
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends E> c)
      • addAll

        public boolean addAll​(java.util.Collection<? extends E> c)
      • addAll

        @SafeVarargs
        public final boolean addAll​(E... elems)
      • remove

        public E remove​(int index)
      • remove

        public void remove​(int from,
                           int to)
      • remove

        public boolean remove​(java.lang.Object o)
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
      • removeAll

        @SafeVarargs
        public final boolean removeAll​(E... elems)
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
      • retainAll

        @SafeVarargs
        public final boolean retainAll​(E... elems)
      • clear

        public void clear()
      • observeInputs

        protected Subscription observeInputs()
        Description copied from class: ObservableBase
        Starts observing this observable's input(s), if any. This method is called when the number of observers goes from 0 to 1. This method is called before ObservableBase.newObserver(Object) is called for the first observer.
        Specified by:
        observeInputs in class ObservableBase<LiveList.Observer<? super E,​?>,​QuasiListChange<? extends E>>
        Returns:
        subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.