Package org.elasticsearch.common.util
Interface IntArray
-
- All Superinterfaces:
org.apache.lucene.util.Accountable,java.lang.AutoCloseable,BigArray,java.io.Closeable,Releasable
public interface IntArray extends BigArray
Abstraction of an array of integer values.
-
-
Method Summary
Modifier and Type Method Description voidfill(long fromIndex, long toIndex, int value)Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue.intget(long index)Get an element given its index.intincrement(long index, int inc)Increment value at the given index byincand return the value.intset(long index, int value)Set a value at the given index and return the previous value.-
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
-
-
-
Method Detail
-
get
int get(long index)
Get an element given its index.
-
set
int set(long index, int value)Set a value at the given index and return the previous value.
-
increment
int increment(long index, int inc)Increment value at the given index byincand return the value.
-
fill
void fill(long fromIndex, long toIndex, int value)Fill slots betweenfromIndexinclusive totoIndexexclusive withvalue.
-
-