Class RowList<T>
java.lang.Object
org.tribuo.util.infotheory.impl.RowList<T>
- Type Parameters:
T- The type stored in the lists.
- All Implemented Interfaces:
Iterable<Row<T>>,Collection<Row<T>>,List<Row<T>>,SequencedCollection<Row<T>>
An implementation of a List which wraps a set of lists.
Each access returns a Row drawn by taking an element from each list.
The rows only expose equals and hashcode, as the information theoretic calculations only care about equality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUnsupported.booleanUnsupported.booleanaddAll(int index, Collection<? extends Row<T>> c) Unsupported.booleanaddAll(Collection<? extends Row<T>> c) Unsupported.voidclear()Unsupported.booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intListIterator<Row<T>> ListIterator<Row<T>> listIterator(int index) remove(int index) Unsupported.booleanUnsupported.booleanremoveAll(Collection<?> c) Unsupported.booleanretainAll(Collection<?> c) Unsupported.Unsupported.intsize()subList(int fromIndex, int toIndex) Unsupported.Object[]toArray()<U> U[]toArray(U[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
RowList
-
-
Method Details
-
size
-
isEmpty
-
contains
-
iterator
-
toArray
-
toArray
-
get
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
add
-
remove
-
addAll
Unsupported. Throws UnsupportedOperationException. -
addAll
-
removeAll
Unsupported. Throws UnsupportedOperationException. -
retainAll
Unsupported. Throws UnsupportedOperationException. -
clear
-
set
-
add
-
remove
-