Class FastContainsList<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess, org.eclipse.emf.common.util.EList<T>

    public class FastContainsList<T>
    extends org.eclipse.emf.common.util.UniqueEList.FastCompare<T>
    Unique value list that supports fast contains method.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.emf.common.util.UniqueEList

        org.eclipse.emf.common.util.UniqueEList.FastCompare<E extends java.lang.Object>
      • Nested classes/interfaces inherited from class org.eclipse.emf.common.util.BasicEList

        org.eclipse.emf.common.util.BasicEList.BasicIndexOutOfBoundsException, org.eclipse.emf.common.util.BasicEList.EIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.BasicEList.EListIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.BasicEList.NonResolvingEListIterator<E1 extends java.lang.Object>, org.eclipse.emf.common.util.BasicEList.UnmodifiableEList<E extends java.lang.Object>
    • Field Summary

      • Fields inherited from class org.eclipse.emf.common.util.BasicEList

        data, size
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, T object)  
      boolean add​(T object)  
      boolean contains​(java.lang.Object object)  
      T remove​(int index)  
      T set​(int index, T object)  
      • Methods inherited from class org.eclipse.emf.common.util.UniqueEList.FastCompare

        useEquals
      • Methods inherited from class org.eclipse.emf.common.util.UniqueEList

        isUnique
      • Methods inherited from class org.eclipse.emf.common.util.BasicEList

        addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, assign, basicGet, basicList, clear, clone, data, get, grow, indexOf, isEmpty, lastIndexOf, move, newData, primitiveGet, setData, setUnique, shrink, size, toArray, toArray
      • Methods inherited from class org.eclipse.emf.common.util.AbstractEList

        addAll, addAll, basicIterator, basicListIterator, basicListIterator, canContainNull, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, iterator, listIterator, listIterator, move, remove, removeAll, resolve, retainAll, toString, validate
      • Methods inherited from class java.util.AbstractList

        removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

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

        forEach
      • Methods inherited from interface java.util.List

        containsAll, replaceAll, sort, spliterator, subList
    • Constructor Detail

      • FastContainsList

        public FastContainsList()
    • Method Detail

      • add

        public boolean add​(T object)
        Specified by:
        add in interface java.util.Collection<T>
        Specified by:
        add in interface java.util.List<T>
        Overrides:
        add in class org.eclipse.emf.common.util.AbstractEList<T>
      • add

        public void add​(int index,
                        T object)
        Specified by:
        add in interface java.util.List<T>
        Overrides:
        add in class org.eclipse.emf.common.util.AbstractEList<T>
      • set

        public T set​(int index,
                     T object)
        Specified by:
        set in interface java.util.List<T>
        Overrides:
        set in class org.eclipse.emf.common.util.AbstractEList<T>
      • remove

        @CheckForNull
        public T remove​(int index)
        Specified by:
        remove in interface java.util.List<T>
        Overrides:
        remove in class org.eclipse.emf.common.util.BasicEList<T>
      • contains

        public boolean contains​(java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<T>
        Specified by:
        contains in interface java.util.List<T>
        Overrides:
        contains in class org.eclipse.emf.common.util.BasicEList<T>