T
- pixel typeA
- access typepublic class LoadedCellCacheLoader<T extends NativeType<T>,A extends ArrayDataAccess<A>> extends Object implements CacheLoader<Long,Cell<A>>
CacheLoader
that produces cells of ArrayDataAccess
type
A
and uses a CellLoader
to populate them with data.
Usually, LoadedCellCacheLoader
should be created through static
helper methods get(CellGrid, CellLoader, NativeType, Set)
or
get(CellGrid, CellLoader, NativeType, PrimitiveType, Set)
to get the desired primitive type and dirty/volatile variant.
Modifier and Type | Class and Description |
---|---|
static interface |
LoadedCellCacheLoader.ArrayDataAccessWrapper<A extends ArrayDataAccess<A>,W extends ArrayDataAccess<W>>
|
Constructor and Description |
---|
LoadedCellCacheLoader(CellGrid grid,
T type,
A creator,
LoadedCellCacheLoader.ArrayDataAccessWrapper<A,?> wrapper,
CellLoader<T> loader) |
Modifier and Type | Method and Description |
---|---|
static <T extends NativeType<T>,A extends ArrayDataAccess<A>> |
get(CellGrid grid,
CellLoader<T> loader,
T type,
PrimitiveType primitiveType,
Set<AccessFlags> flags) |
static <T extends NativeType<T>,A extends ArrayDataAccess<A>> |
get(CellGrid grid,
CellLoader<T> loader,
T type,
Set<AccessFlags> flags) |
Cell<A> |
get(Long key) |
public LoadedCellCacheLoader(CellGrid grid, T type, A creator, LoadedCellCacheLoader.ArrayDataAccessWrapper<A,?> wrapper, CellLoader<T> loader)
public Cell<A> get(Long key) throws Exception
get
in interface CacheLoader<Long,Cell<A extends ArrayDataAccess<A>>>
Exception
public static <T extends NativeType<T>,A extends ArrayDataAccess<A>> LoadedCellCacheLoader<T,A> get(CellGrid grid, CellLoader<T> loader, T type, Set<AccessFlags> flags)
public static <T extends NativeType<T>,A extends ArrayDataAccess<A>> LoadedCellCacheLoader<T,A> get(CellGrid grid, CellLoader<T> loader, T type, PrimitiveType primitiveType, Set<AccessFlags> flags)
Copyright © 2015–2022 ImgLib2. All rights reserved.