Package org.pepsoft.util.jobqueue
Class HashList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.pepsoft.util.jobqueue.HashList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,Set<E>
A combination of the List and Set interfaces. A List which can only contain
equal objects once (according to their
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.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, toArray, toArray
-
Constructor Details
-
HashList
public HashList() -
HashList
public HashList(int initialCapacity)
-
-
Method Details
-
contains
-
addToEnd
-
add
-
remove
-
clear
public void clear() -
iterator
-
size
public int size() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classAbstractList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceList<E>- Specified by:
spliteratorin interfaceSet<E>
-