Class DistinctResultList<E>
java.lang.Object
org.apache.openjpa.kernel.DistinctResultList<E>
- Type Parameters:
E- element type
- All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<E>
An immutable list that imposes uniqueness on its member. This implementation
traverses the entire result list on construction. So it is not suitable or
efficient for large results. All mutation operations (except clear()) throw
UnsupportedOperationException.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) booleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) protected RuntimeExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
DistinctResultList
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>
-
get
-
indexOf
-
isEmpty
-
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
-
subList
-
toArray
-
toArray
-
translate
-
writeReplace
- Throws:
ObjectStreamException
-