com.starbase.diff
Class BinaryCompare

java.lang.Object
  |
  +--com.starbase.diff.BinaryCompare
All Implemented Interfaces:
DiffCompare

public class BinaryCompare
extends java.lang.Object
implements DiffCompare

A simple implementation of the Compare interface that strictly compares all the bytes of two sequences for equality.


Constructor Summary
BinaryCompare()
           
 
Method Summary
 boolean equalObjects(java.lang.Object src, java.lang.Object trg)
          Return true if the two arguments are "equal".
 int hashObject(java.lang.Object object)
          Compute a hash value for the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryCompare

public BinaryCompare()
Method Detail

hashObject

public int hashObject(java.lang.Object object)
Description copied from interface: DiffCompare
Compute a hash value for the object.

Specified by:
hashObject in interface DiffCompare

equalObjects

public boolean equalObjects(java.lang.Object src,
                            java.lang.Object trg)
Description copied from interface: DiffCompare
Return true if the two arguments are "equal".

Specified by:
equalObjects in interface DiffCompare


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.