ariba.ui.aribaweb.core
Class AWChecksum
java.lang.Object
ariba.ui.aribaweb.core.AWChecksum
public class AWChecksum
- extends java.lang.Object
Method Summary |
static long |
checksumWithLength(char[] buf,
int len)
|
static long |
crc32(long crc,
byte[] buf,
int len)
|
static long |
crc32(long crc,
char[] buf,
int len)
|
static long |
crc32(long crc,
int anInt)
|
static long |
crc32(long crc,
long otherCRC)
Merge one CRC into another |
static long |
crc32(long crc,
java.lang.String string)
|
static int |
crc32Hash(char[] buf,
int len)
a simplified version of crc32 for char[] which ignore the most-significant byte
as this is only used as a hashcode for an chars[]
Only uses the last 30 values to keep it fast. |
static int |
crc32Hash(char[] buf,
int startPos,
int fullLength)
|
static long |
crc32HashList(long crc,
java.util.List list)
|
static long |
crc32HashOrderedList(long crc,
java.lang.Object list)
|
static long |
crc32StringList(long crc,
java.util.List list)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWChecksum
public AWChecksum()
crc32
public static long crc32(long crc,
byte[] buf,
int len)
crc32
public static long crc32(long crc,
char[] buf,
int len)
crc32
public static long crc32(long crc,
int anInt)
crc32
public static long crc32(long crc,
long otherCRC)
- Merge one CRC into another
checksumWithLength
public static long checksumWithLength(char[] buf,
int len)
- Parameters:
buf
- len
- the length of the buf to use. Must be < 16-bit (65,535)
- Returns:
- a value which represents the len (16 most-significant bytes)
and a 32-bit CRC value.
crc32Hash
public static int crc32Hash(char[] buf,
int len)
- a simplified version of crc32 for char[] which ignore the most-significant byte
as this is only used as a hashcode for an chars[]
Only uses the last 30 values to keep it fast.
- Parameters:
buf
- len
-
- Returns:
- the crc
crc32Hash
public static int crc32Hash(char[] buf,
int startPos,
int fullLength)
crc32
public static long crc32(long crc,
java.lang.String string)
crc32StringList
public static long crc32StringList(long crc,
java.util.List list)
crc32HashList
public static long crc32HashList(long crc,
java.util.List list)
crc32HashOrderedList
public static long crc32HashOrderedList(long crc,
java.lang.Object list)
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.