A
- access typepublic class DefaultEmptyArrayCreator<A extends VolatileArrayDataAccess<A>> extends Object implements EmptyArrayCreator<A>
EmptyArrayCreator
implementation for standard access types. Maintains
one invalid array that grows to the biggest size requested so far. The same
array is reused and returned for all
requests
.
Access types provided through get(PrimitiveType, boolean)
are
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_EMPTY_SIZE |
Constructor and Description |
---|
DefaultEmptyArrayCreator(A creator) |
Modifier and Type | Method and Description |
---|---|
static <A extends VolatileArrayDataAccess<A>> |
get(PrimitiveType primitiveType,
boolean dirty) |
A |
getEmptyArray(long numEntities) |
public static final int INITIAL_EMPTY_SIZE
public DefaultEmptyArrayCreator(A creator)
public A getEmptyArray(long numEntities)
getEmptyArray
in interface EmptyArrayCreator<A extends VolatileArrayDataAccess<A>>
public static <A extends VolatileArrayDataAccess<A>> DefaultEmptyArrayCreator<A> get(PrimitiveType primitiveType, boolean dirty)
get
in interface EmptyArrayCreator<A extends VolatileArrayDataAccess<A>>
Copyright © 2015–2021 Fiji. All rights reserved.