Package org.jibx.schema.types
Class ShortBitSet
- java.lang.Object
-
- org.jibx.schema.types.ShortBitSet
-
public class ShortBitSet extends java.lang.Object
Bit set stored as ashort
value.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description private char
m_bits
Mask for values in set.private static char[]
s_bitMasks
Array of bit masks.
-
Constructor Summary
Constructors Constructor Description ShortBitSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
isSet
public boolean isSet(int value)
Check for value in set.- Parameters:
value
-- Returns:
true
if in set,false
if not
-
add
public void add(int value)
Include value in set.- Parameters:
value
-
-
remove
public void remove(int value)
Exclude value from set.- Parameters:
value
-
-
clear
public void clear()
Clear all values.
-
setRange
public void setRange(int min, int max)
Set all values in range.- Parameters:
min
- minimum value in rangemax
- maximum value in range
-
-