public class HashList<E> extends AbstractList<E> implements Set<E>
equals() and
hashCode() methods). Or in other words an ordered Set.
This collection's iterator is read-only and does not support the add(), etc. methods. It is also not fail-fast! If you modify the collection while iterating over it, the results are unspecified.
modCount| Constructor and Description |
|---|
HashList() |
HashList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E e) |
boolean |
addToEnd(E e) |
void |
clear() |
boolean |
contains(Object o) |
E |
get(int index) |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator(int initialIndex) |
E |
remove(int index) |
boolean |
remove(Object o) |
E |
set(int index,
E e) |
int |
size() |
Spliterator<E> |
spliterator() |
addAll, equals, hashCode, listIterator, removeRange, subListaddAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streamaddAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, toArray, toArraypublic boolean contains(Object o)
public boolean addToEnd(E e)
public boolean add(E e)
public boolean remove(Object o)
public void clear()
public int size()
public E get(int index)
public void add(int index,
E e)
public E remove(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public ListIterator<E> listIterator(int initialIndex)
listIterator in interface List<E>listIterator in class AbstractList<E>public Spliterator<E> spliterator()
spliterator in interface Iterable<E>spliterator in interface Collection<E>spliterator in interface List<E>spliterator in interface Set<E>Copyright © 2011–2025 pepsoft.org. All rights reserved.