public class ArraySet<E> extends ArrayList<E> implements Set<E>
modCount
Constructor and Description |
---|
ArraySet()
Default constructor
|
ArraySet(ArraySet<E> other)
Copy constructor
|
ArraySet(int initialCapacity)
Constructor with initialCapacity
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
protected void |
fastAdd(E element) |
protected void |
fastAdd(int index,
E element) |
Set<E> |
immutable() |
int |
indexOf(Object item) |
protected int |
indexOfArray(Object[] item) |
int |
lastIndexOf(Object item) |
boolean |
remove(Object item) |
addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, isEmpty, iterator, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
containsAll, equals, hashCode
public ArraySet()
public ArraySet(int initialCapacity)
public boolean add(E e)
public void add(int index, E element)
public int indexOf(Object item)
public int lastIndexOf(Object item)
lastIndexOf
in interface List<E>
lastIndexOf
in class ArrayList<E>
public boolean remove(Object item)
protected void fastAdd(E element)
protected void fastAdd(int index, E element)
protected int indexOfArray(Object[] item)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.