C# Class NGit.Diff.HashedSequenceComparator

Wrap another comparator for use with HashedSequence<S> .

This comparator acts as a proxy for the real comparator, evaluating the cached hash code before testing the underlying comparator's equality. Comparators of this type must be used with a HashedSequence<S> .

To construct an instance of this type use HashedSequencePair<S> .

Inheritance: SequenceComparator>
显示文件 Open project: ststeiger/ngit-core Class Usage Examples

Public Methods

Method Description
Equals ( NGit.Diff.HashedSequence a, int ai, NGit.Diff.HashedSequence b, int bi ) : bool
Hash ( NGit.Diff.HashedSequence seq, int ptr ) : int

Private Methods

Method Description
HashedSequenceComparator ( NGit.Diff.SequenceComparator cmp ) : NGit.Diff

Method Details

Equals() public method

public Equals ( NGit.Diff.HashedSequence a, int ai, NGit.Diff.HashedSequence b, int bi ) : bool
a NGit.Diff.HashedSequence
ai int
b NGit.Diff.HashedSequence
bi int
return bool

Hash() public method

public Hash ( NGit.Diff.HashedSequence seq, int ptr ) : int
seq NGit.Diff.HashedSequence
ptr int
return int