Package org.jibx.schema.types
Class ShortBitSet
- java.lang.Object
-
- org.jibx.schema.types.ShortBitSet
-
public class ShortBitSet extends Object
Bit set stored as ashortvalue.- Author:
- Dennis M. Sosnoski
-
-
Constructor Summary
Constructors Constructor Description ShortBitSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int value)Include value in set.voidclear()Clear all values.booleanisSet(int value)Check for value in set.voidremove(int value)Exclude value from set.voidsetRange(int min, int max)Set all values in range.
-
-
-
Method Detail
-
isSet
public boolean isSet(int value)
Check for value in set.- Parameters:
value- in set- Returns:
trueif in set,falseif not
-
add
public void add(int value)
Include value in set.- Parameters:
value- in set
-
remove
public void remove(int value)
Exclude value from set.- Parameters:
value- from set
-
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
-
-