org.jibx.schema.types
Class ShortBitSet

java.lang.Object
  extended by org.jibx.schema.types.ShortBitSet

public class ShortBitSet
extends Object

Bit set stored as a short value.

Author:
Dennis M. Sosnoski

Constructor Summary
ShortBitSet()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortBitSet

public ShortBitSet()
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 range
max - maximum value in range


Copyright © 2005-2012 jibx.org. All Rights Reserved.