java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
org.apache.jena.sparql.engine.join.ImmutableUniqueList<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
JoinKey
An immutable list without duplicates.
For lists of size 5 or larger,
the
indexOf(Object) method will on first use index the elements for faster access.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe builder can emit a key every time build() is called and it can be continued to be used. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T> ImmutableUniqueList<T>createUniqueList(Class<T> itemClass, Collection<T> items) static <T> ImmutableUniqueList<T>createUniqueList(Class<T> itemClass, T[] items) get(int i) intintlength()static <T> ImmutableUniqueList.Builder<T>newUniqueListBuilder(Class<T> itemClass) intsize()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, set, subListMethods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Method Details
-
newUniqueListBuilder
-
createUniqueList
-
createUniqueList
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
length
public int length() -
get
-
contains
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceList<T>- Overrides:
containsin classAbstractCollection<T>
-
indexOf
-