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 TypeMethodDescriptionvoid
Unsupported.boolean
Unsupported.boolean
addAll
(int index, Collection<? extends Row<T>> c) Unsupported.boolean
addAll
(Collection<? extends Row<T>> c) Unsupported.void
clear()
Unsupported.boolean
boolean
containsAll
(Collection<?> c) get
(int index) int
boolean
isEmpty()
iterator()
int
ListIterator
<Row<T>> ListIterator
<Row<T>> listIterator
(int index) remove
(int index) Unsupported.boolean
Unsupported.boolean
removeAll
(Collection<?> c) Unsupported.boolean
retainAll
(Collection<?> c) Unsupported.Unsupported.int
size()
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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
-
subList
-
add
-
remove
-
addAll
Unsupported. Throws UnsupportedOperationException. -
addAll
-
removeAll
Unsupported. Throws UnsupportedOperationException. -
retainAll
Unsupported. Throws UnsupportedOperationException. -
clear
-
set
-
add
-
remove
-