com.plumtree.openfoundation.util
Class XPCRC.XPCRCValue

java.lang.Object
  extended bycom.plumtree.openfoundation.util.XPCRC.XPCRCValue
Enclosing class:
XPCRC

public static class XPCRC.XPCRCValue
extends java.lang.Object

Simple CRC data class representing a 64-bit CRC value. The representation consists of two int values that represent two sets of 32 bits. A 64-bit long value was not chosen because of problems extract high and low bits as well as difficulties created by signed data types.

If this data structure is used to pass around 32-bit CRC values, expect m_crcB to always be 0 and m_crcA to be the 32-bit CRC value.

Author:
MichaelY

Field Summary
 int m_crcA
          m_crcA to be the 32-bit CRC value.
 int m_crcB
          m_crcB to always be 0.
 
Constructor Summary
XPCRC.XPCRCValue(int crcA)
          constructor for XPCRCValue Instantiation.
XPCRC.XPCRCValue(int crcA, int crcB)
          Constructor for XPCRCValue Instantiation.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_crcA

public int m_crcA
m_crcA to be the 32-bit CRC value.


m_crcB

public int m_crcB
m_crcB to always be 0.

Constructor Detail

XPCRC.XPCRCValue

public XPCRC.XPCRCValue(int crcA,
                        int crcB)
Constructor for XPCRCValue Instantiation.

Parameters:
crcA - to be the 32-bit CRC value.
crcB - to be always 0, can be changed with this constructor.

XPCRC.XPCRCValue

public XPCRC.XPCRCValue(int crcA)
constructor for XPCRCValue Instantiation.

Parameters:
crcA - to be the 32-bit CRC value.
Method Detail

toString

public java.lang.String toString()


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.