C# Класс 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> .

Наследование: SequenceComparator>
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( NGit.Diff.HashedSequence a, int ai, NGit.Diff.HashedSequence b, int bi ) : bool
Hash ( NGit.Diff.HashedSequence seq, int ptr ) : int

Приватные методы

Метод Описание
HashedSequenceComparator ( NGit.Diff.SequenceComparator cmp ) : NGit.Diff

Описание методов

Equals() публичный Метод

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
Результат bool

Hash() публичный Метод

public Hash ( NGit.Diff.HashedSequence seq, int ptr ) : int
seq NGit.Diff.HashedSequence
ptr int
Результат int