Package org.elasticsearch.common.util
Class BitArray
java.lang.Object
org.elasticsearch.common.util.BitArray
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Releasable
public final class BitArray extends java.lang.Object implements Releasable
-
Constructor Details
-
Method Details
-
set
public void set(int index)Set theindex
th bit. -
clear
public void clear(int index)Clear theindex
th bit. -
get
public boolean get(int index)Is theindex
th bit set? -
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceReleasable
-