Table of Contents

Class AntPathMatcher.AntPatternComparator

Namespace
Steeltoe.Common.Util
Assembly
Steeltoe.Common.dll
protected class AntPathMatcher.AntPatternComparator : IComparer<string>
Inheritance
AntPathMatcher.AntPatternComparator
Implements
Inherited Members

Constructors

AntPatternComparator(string)

public AntPatternComparator(string path)

Parameters

path string

Methods

Compare(string, string)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare(string pattern1, string pattern2)

Parameters

pattern1 string
pattern2 string

Returns

int

A signed integer that indicates the relative values of x and y, as shown in the following table.

Value Meaning
Less than zerox is less than y.
Zerox equals y.
Greater than zerox is greater than y.