wttools.protocols.snmp
Class BitShiftMask

java.lang.Object
  |
  +--wttools.protocols.snmp.BitShiftMask

public final class BitShiftMask
extends java.lang.Object

BitShiftMask.java Created: Saturday Dec 08 2001

Version:
$Revision: 1.1 $
Author:
Kantharaj B R

Constructor Summary
BitShiftMask()
           
 
Method Summary
 byte shiftLeftMask(int data, int numberOfTimes)
          shiftLeftMask method performs specified number of left shift operation on the passed integer data
 byte shiftLeftMask(int data, int numberOfTimes, int maskInHex)
          shiftLeftMask method performs specified number of left shift operation on the passed integer data with the passed mask
 byte shiftRightMask(int data, int numberOfTimes)
          shiftRightMask method performs specified number of right shift operation on the passed integer data
 byte shiftRightMask(int data, int numberOfTimes, int maskInHex)
          shiftRightMask method performs specified number of right shift operation on the passed integer data with the passed mask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitShiftMask

public BitShiftMask()
Method Detail

shiftRightMask

public final byte shiftRightMask(int data,
                                 int numberOfTimes)
shiftRightMask method performs specified number of right shift operation on the passed integer data
Parameters:
data - a int value
numberOfTimes - a int value
Returns:
an byte value

shiftRightMask

public final byte shiftRightMask(int data,
                                 int numberOfTimes,
                                 int maskInHex)
shiftRightMask method performs specified number of right shift operation on the passed integer data with the passed mask
Parameters:
data - a int value
numberOfTimes - a int value
maskInHex - an int value
Returns:
an byte value

shiftLeftMask

public final byte shiftLeftMask(int data,
                                int numberOfTimes)
shiftLeftMask method performs specified number of left shift operation on the passed integer data
Parameters:
data - a int value
numberOfTimes - a int value
Returns:
an byte value

shiftLeftMask

public final byte shiftLeftMask(int data,
                                int numberOfTimes,
                                int maskInHex)
shiftLeftMask method performs specified number of left shift operation on the passed integer data with the passed mask
Parameters:
data - a int value
numberOfTimes - a int value
maskInHex - an int value
Returns:
an byte value


Copyright GNU, wttools developers Team.