edu.umd.cs.db.xsq
Class ItemFlag

java.lang.Object
  |
  +--edu.umd.cs.db.xsq.ItemFlag

public class ItemFlag
extends java.lang.Object


Constructor Summary
ItemFlag()
           
 
Method Summary
static int getLowestDepth(long flag)
          Get the lowest depth in the flag.
static void main(java.lang.String[] args)
           
static long removeLowestDepth(long flag)
          Remove the highest bit from the flag.
static long removeLowestDepth(long flag, int d)
          Remove the highest bit from the flag if the lowest bit is at depth d.
static long removeLowestNBits(long flag, int i)
           
static long setDepthBitAt(long flag, int d)
           
static java.lang.String toString(long flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemFlag

public ItemFlag()
Method Detail

setDepthBitAt

public static long setDepthBitAt(long flag,
                                 int d)

getLowestDepth

public static int getLowestDepth(long flag)
Get the lowest depth in the flag. The depth is zero-based.


removeLowestDepth

public static long removeLowestDepth(long flag,
                                     int d)
Remove the highest bit from the flag if the lowest bit is at depth d.


removeLowestNBits

public static long removeLowestNBits(long flag,
                                     int i)

removeLowestDepth

public static long removeLowestDepth(long flag)
Remove the highest bit from the flag.


toString

public static java.lang.String toString(long flag)

main

public static void main(java.lang.String[] args)