C# 클래스 McSherry.SemanticVersioning.Ranges.VersionRange.Comparator

Implements comparison using the ComparatorToken instances produced by the Parser.

상속: IComparator
파일 보기 프로젝트 열기: McSherry/McSherry.SemanticVersioning

공개 메소드들

메소드 설명
Create ( ComparatorToken cmp ) : IComparator

Creates a new IComparator using the specified ComparatorToken.

비공개 메소드들

메소드 설명
Comparator ( ) : System
Comparator ( Predicate impl ) : System

Creates a new Comparator with the specified function as its comparison function.

IComparator ( SemanticVersion comparand ) : bool
OpEqual ( SemanticVersion arg, SemanticVersion comparator ) : bool
OpGTEQ ( SemanticVersion arg, SemanticVersion comparator ) : bool
OpGreater ( SemanticVersion arg, SemanticVersion comparator ) : bool
OpLTEQ ( SemanticVersion arg, SemanticVersion comparator ) : bool
OpLess ( SemanticVersion arg, SemanticVersion comparator ) : bool

메소드 상세

Create() 공개 정적인 메소드

Creates a new IComparator using the specified ComparatorToken.

/// Thrown when has an unrecognised /// value. ///
public static Create ( ComparatorToken cmp ) : IComparator
cmp ComparatorToken /// The to create an equivalent /// for. ///
리턴 IComparator