public class BitSet extends Object
MemorySegment
.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.
|
MemorySegment |
getMemorySegment() |
void |
set(int index)
Sets the bit at specified index.
|
void |
setMemorySegment(MemorySegment memorySegment,
int offset) |
String |
toString() |
void |
unsetMemorySegment() |
public void setMemorySegment(MemorySegment memorySegment, int offset)
public void unsetMemorySegment()
public MemorySegment getMemorySegment()
public void set(int index)
index
- - positionpublic boolean get(int index)
index
- - positionpublic int bitSize()
public void clear()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.