org.apache.lucene.util.Accountable
, java.lang.AutoCloseable
, BigArray
, java.io.Closeable
, Releasable
public interface IntArray extends BigArray
Modifier and Type | Method | Description |
---|---|---|
void |
fill(long fromIndex,
long toIndex,
int value) |
Fill slots between
fromIndex inclusive to toIndex exclusive with value . |
int |
get(long index) |
Get an element given its index.
|
int |
increment(long index,
int inc) |
Increment value at the given index by
inc and return the value. |
int |
set(long index,
int value) |
Set a value at the given index and return the previous value.
|
close
int get(long index)
int set(long index, int value)
int increment(long index, int inc)
inc
and return the value.void fill(long fromIndex, long toIndex, int value)
fromIndex
inclusive to toIndex
exclusive with value
.