public class LongBitSet
extends java.lang.Object
| Constructor and Description |
|---|
LongBitSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(long fromIndex,
long toIndex)
Clear all bits between
fromIndex (inclusive) and toIndex
(exclusive) |
boolean |
get(long index)
Get a value for a given index
|
void |
set(long index,
boolean value)
Set a given value for a given index
|
public void set(long index,
boolean value)
index - Long indexvalue - Value to setpublic boolean get(long index)
index - Long indexpublic void clear(long fromIndex,
long toIndex)
fromIndex (inclusive) and toIndex
(exclusive)fromIndex - Start index (inclusive)toIndex - End index (exclusive)