Skip navigation links
org.eclipse.gemini.blueprint.service.importer.support.internal.collection

Class DynamicList<E>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(int index, E o) 
      boolean addAll(int index, java.util.Collection<? extends E> c) 
      E get(int index) 
      int indexOf(java.lang.Object o)
      Hook used by wrapping collections to determine the position of the object being removed while iterating.
      int lastIndexOf(java.lang.Object o) 
      java.util.ListIterator<E> listIterator() 
      java.util.ListIterator<E> listIterator(int index) 
      E remove(int index) 
      E set(int index, E o) 
      java.util.List<E> subList(int fromIndex, int toIndex) 
      • Methods inherited from class java.util.AbstractCollection

        removeAll, retainAll
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.List

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • DynamicList

        public DynamicList()
      • DynamicList

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

        public DynamicList(int size)
    • Method Detail

      • add

        public void add(int index,
                        E o)
        Specified by:
        add in interface java.util.List<E>
        Overrides:
        add in class DynamicCollection<E>
      • addAll

        public boolean addAll(int index,
                              java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.List<E>
      • get

        public E get(int index)
        Specified by:
        get in interface java.util.List<E>
      • indexOf

        public int indexOf(java.lang.Object o)
        Description copied from class: DynamicCollection
        Hook used by wrapping collections to determine the position of the object being removed while iterating.
        Specified by:
        indexOf in interface java.util.List<E>
        Overrides:
        indexOf in class DynamicCollection<E>
      • lastIndexOf

        public int lastIndexOf(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<E>
      • listIterator

        public java.util.ListIterator<E> listIterator()
        Specified by:
        listIterator in interface java.util.List<E>
      • listIterator

        public java.util.ListIterator<E> listIterator(int index)
        Specified by:
        listIterator in interface java.util.List<E>
      • remove

        public E remove(int index)
        Specified by:
        remove in interface java.util.List<E>
        Overrides:
        remove in class DynamicCollection<E>
      • set

        public E set(int index,
                     E o)
        Specified by:
        set in interface java.util.List<E>
      • subList

        public java.util.List<E> subList(int fromIndex,
                                         int toIndex)
        Specified by:
        subList in interface java.util.List<E>