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>
파일 보기 프로젝트 열기: ststeiger/ngit-core 1 사용 예제들

공개 메소드들

메소드 설명
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