org.semanticweb.elk.util.collections
Class ArraySet<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by org.semanticweb.elk.util.collections.ArraySet<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess, Set<T>

public class ArraySet<T>
extends ArrayList<T>
implements Set<T>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ArraySet()
           
ArraySet(Collection<? extends T> c)
           
ArraySet(int initialCapacity)
           
 
Method Summary
 boolean add(T element)
           
 boolean addAll(Collection<? extends T> c)
           
 boolean addAll(int index, Collection<? extends T> c)
           
 
Methods inherited from class java.util.ArrayList
add, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

ArraySet

public ArraySet()

ArraySet

public ArraySet(Collection<? extends T> c)

ArraySet

public ArraySet(int initialCapacity)
Method Detail

add

public boolean add(T element)
Specified by:
add in interface Collection<T>
Specified by:
add in interface List<T>
Specified by:
add in interface Set<T>
Overrides:
add in class ArrayList<T>

addAll

public boolean addAll(Collection<? extends T> c)
Specified by:
addAll in interface Collection<T>
Specified by:
addAll in interface List<T>
Specified by:
addAll in interface Set<T>
Overrides:
addAll in class ArrayList<T>

addAll

public boolean addAll(int index,
                      Collection<? extends T> c)
Specified by:
addAll in interface List<T>
Overrides:
addAll in class ArrayList<T>


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.