Class FastContainsList<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.emf.common.util.AbstractEList<E>
org.eclipse.emf.common.util.BasicEList<E>
org.eclipse.emf.common.util.UniqueEList<E>
org.eclipse.emf.common.util.UniqueEList.FastCompare<T>
com.nomagic.magicdraw.uml2.util.FastContainsList<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, 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.
Version:
1.0
See Also:
  • Field Summary

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

    data, size

    Fields inherited from class java.util.AbstractList

    modCount
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int index, T object)
     
    boolean
    add(T object)
     
    boolean
    contains(Object object)
     
    remove(int index)
     
    set(int index, T object)
     
    protected T
    validate(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

    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 Details

    • FastContainsList

      public FastContainsList()
  • Method Details

    • add

      public boolean add(T object)
      Specified by:
      add in interface Collection<T>
      Specified by:
      add in interface 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 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 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 List<T>
      Overrides:
      remove in class org.eclipse.emf.common.util.BasicEList<T>
    • contains

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

      protected T validate(int index, T object)
      Overrides:
      validate in class org.eclipse.emf.common.util.AbstractEList<T>