Package net.imglib2.util
Class FlatCollections.ListFromRAI<T,E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- net.imglib2.util.FlatCollections.ListFromRAI<T,E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Enclosing class:
- FlatCollections
private static class FlatCollections.ListFromRAI<T,E> extends java.util.AbstractList<E>ARandomAccessibleIntervalexpressed as aList.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<T,E>converterprivate java.lang.ThreadLocal<RandomAccess<T>>raprivate RandomAccessibleInterval<T>raiprivate intsize
-
Constructor Summary
Constructors Constructor Description ListFromRAI(RandomAccessibleInterval<T> rai, java.util.function.Function<T,E> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eget(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
rai
private final RandomAccessibleInterval<T> rai
-
size
private final int size
-
ra
private final java.lang.ThreadLocal<RandomAccess<T>> ra
-
-
Constructor Detail
-
ListFromRAI
public ListFromRAI(RandomAccessibleInterval<T> rai, java.util.function.Function<T,E> converter)
-
-
Method Detail
-
get
public E get(int index)
-
-