C# Class McSherry.SemanticVersioning.Ranges.VersionRange.Comparator

Implements comparison using the ComparatorToken instances produced by the Parser.

Inheritance: IComparator
ファイルを表示 Open project: McSherry/McSherry.SemanticVersioning

Public Methods

Method Description
Create ( ComparatorToken cmp ) : IComparator

Creates a new IComparator using the specified ComparatorToken.

Private Methods

Method Description
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

Method Details

Create() public static method

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. ///
return IComparator