Package org.tribuo.util.infotheory.impl
Class RowList<T>
java.lang.Object
org.tribuo.util.infotheory.impl.RowList<T>
- Type Parameters:
T
- The type stored in the lists.
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
-
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
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
RowList
Constructs a RowList from a set of lists.- Parameters:
set
- The feature lists.
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <U> U[] toArray(U[] a) -
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
Unsupported. Throws UnsupportedOperationException. -
add
Unsupported. Throws UnsupportedOperationException. -
remove
Unsupported. Throws UnsupportedOperationException. -
addAll
Unsupported. Throws UnsupportedOperationException. -
addAll
Unsupported. Throws UnsupportedOperationException. -
removeAll
Unsupported. Throws UnsupportedOperationException. -
retainAll
Unsupported. Throws UnsupportedOperationException. -
clear
public void clear()Unsupported. Throws UnsupportedOperationException. -
set
Unsupported. Throws UnsupportedOperationException. -
add
Unsupported. Throws UnsupportedOperationException. -
remove
Unsupported. Throws UnsupportedOperationException.
-