public static final class SparseArray.SparseFactory<N extends Number> extends Object
Modifier and Type | Method and Description |
---|---|
SB |
chunk(long chunk) |
SB |
fixed(long fixed) |
SB |
initial(long initial) |
SB |
limit(long limit) |
SparseArray<N> |
make() |
SparseArray<N> |
make(long count) |
public SparseArray<N> make()
public SparseArray<N> make(long count)
public SB chunk(long chunk)
chunk
- Defines the capacity break point. Below this point the capacity is doubled when needed.
Above it, it is grown by adding one "chunk" at the time.public SB fixed(long fixed)
public SB initial(long initial)
initial
- Sets the initial capacity of the "arrays" to be created using this factory.public SB limit(long limit)
limit
- Defines a maximum size. Only set this if you know the precise max size, and it should be
something relatively small. Setting the max size is meant as an alternative to setting any/all
of the other paramaters, and will switch to a tighter capacity strategy. The only other
configuration you may want to set in combination with this one is the initial capacity (set that
first in that case).Copyright © 2019 Optimatika. All rights reserved.