public class BitSet extends Object
Constructor and Description |
---|
BitSet(int byteSize) |
Modifier and Type | Method and Description |
---|---|
int |
bitSize()
Number of bits
|
void |
clear()
Clear the bit set.
|
boolean |
get(int index)
Returns true if the bit is set in the specified index.
|
void |
set(int index)
Sets the bit at specified index.
|
void |
setMemorySegment(MemorySegment memorySegment,
int offset) |
String |
toString() |
public void setMemorySegment(MemorySegment memorySegment, int offset)
public void set(int index)
index
- - positionpublic boolean get(int index)
index
- - positionpublic int bitSize()
public void clear()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.