A
- access typepublic class EmptyCellCacheLoader<A extends ArrayDataAccess<A>> extends Object implements CacheLoader<Long,Cell<A>>
CacheLoader
that produces empty cells of ArrayDataAccess
type A
, with the correct dimensions, etc.
Usually, it should be created through static helper methods
get(CellGrid, Fraction, PrimitiveType, Set)
or
get(CellGrid, NativeType, Set)
to get the desired
primitive type and dirty/volatile variant.
Constructor and Description |
---|
EmptyCellCacheLoader(CellGrid grid,
Fraction entitiesPerPixel,
A creator) |
Modifier and Type | Method and Description |
---|---|
static <A extends ArrayDataAccess<A>> |
get(CellGrid grid,
Fraction entitiesPerPixel,
PrimitiveType primitiveType,
Set<AccessFlags> flags) |
static <T extends NativeType<T>,A extends ArrayDataAccess<A>> |
get(CellGrid grid,
T type,
Set<AccessFlags> flags) |
Cell<A> |
get(Long key) |
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>> EmptyCellCacheLoader<A> get(CellGrid grid, T type, Set<AccessFlags> flags)
public static <A extends ArrayDataAccess<A>> EmptyCellCacheLoader<A> get(CellGrid grid, Fraction entitiesPerPixel, PrimitiveType primitiveType, Set<AccessFlags> flags)
Copyright © 2015–2022 ImgLib2. All rights reserved.