XCMS Toolkit

jtools
Class ByteArrayComparison

java.lang.Object
  extended by jtools.ByteArrayComparison

public class ByteArrayComparison
extends java.lang.Object

Compares two byte arrays for equality. Returns true if both arrays are of the same length and contain exactly the same byte values. Returns false otherwise.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Constructor Summary
ByteArrayComparison()
          Constructor for ByteArrayComparison.
 
Method Summary
 boolean compare(byte[] a, byte[] b)
          Determines whether two buffers contain the same contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayComparison

public ByteArrayComparison()
Constructor for ByteArrayComparison.

Method Detail

compare

public boolean compare(byte[] a,
                       byte[] b)
Determines whether two buffers contain the same contents.

Parameters:
a - a byte array buffer
b - a byte array buffer
Returns:
boolean true or false

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.