public class ShortBitSet
extends java.lang.Object
short
value.Modifier and Type | Field and Description |
---|---|
private char |
m_bits
Mask for values in set.
|
private static char[] |
s_bitMasks
Array of bit masks.
|
Constructor and Description |
---|
ShortBitSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(int value)
Include value in set.
|
void |
clear()
Clear all values.
|
boolean |
isSet(int value)
Check for value in set.
|
void |
remove(int value)
Exclude value from set.
|
void |
setRange(int min,
int max)
Set all values in range.
|
private static final char[] s_bitMasks
private char m_bits
public boolean isSet(int value)
value
- true
if in set, false
if notpublic void add(int value)
value
- public void remove(int value)
value
- public void clear()
public void setRange(int min, int max)
min
- minimum value in rangemax
- maximum value in range