A
- access typepublic class CreateInvalidVolatileCell<A> extends Object implements CreateInvalid<Long,Cell<A>>
CreateInvalid
that produces empty cells of
VolatileArrayDataAccess
type A
, with the correct dimensions,
etc.
The same VolatileArrayDataAccess
is re-used for many cells. If a Cell
needs a bigger access, we allocate a new one and then re-use that, and so on.
Usually, CreateInvalidVolatileCell
should be created through static
helper methods
get(CellGrid, Fraction, PrimitiveType, boolean)
or
get(CellGrid, NativeType, boolean)
to get the desired
primitive type and dirty variant.
Constructor and Description |
---|
CreateInvalidVolatileCell(CellGrid grid,
Fraction entitiesPerPixel,
EmptyArrayCreator<A> creator) |
Modifier and Type | Method and Description |
---|---|
Cell<A> |
createInvalid(Long key) |
static <A extends VolatileArrayDataAccess<A>> |
get(CellGrid grid,
Fraction entitiesPerPixel,
PrimitiveType primitiveType,
boolean dirty) |
static <T extends NativeType<T>,A extends VolatileArrayDataAccess<A>> |
get(CellGrid grid,
T type,
boolean dirty) |
public CreateInvalidVolatileCell(CellGrid grid, Fraction entitiesPerPixel, EmptyArrayCreator<A> creator)
public Cell<A> createInvalid(Long key) throws Exception
createInvalid
in interface CreateInvalid<Long,Cell<A>>
Exception
public static <T extends NativeType<T>,A extends VolatileArrayDataAccess<A>> CreateInvalidVolatileCell<A> get(CellGrid grid, T type, boolean dirty) throws IllegalArgumentException
IllegalArgumentException
public static <A extends VolatileArrayDataAccess<A>> CreateInvalidVolatileCell<A> get(CellGrid grid, Fraction entitiesPerPixel, PrimitiveType primitiveType, boolean dirty) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2015–2021 Fiji. All rights reserved.