Class AbstractMethodMessageHandler<T>.MatchComparer
- Namespace
- Steeltoe.Messaging.Handler.Invocation
- Assembly
- Steeltoe.Messaging.MessagingBase.dll
protected class AbstractMethodMessageHandler<T>.MatchComparer : IComparer<AbstractMethodMessageHandler<T>.Match>
- Inheritance
-
AbstractMethodMessageHandler<T>.MatchComparer
- Implements
- Inherited Members
Constructors
MatchComparer(IComparer<T>)
public MatchComparer(IComparer<T> comparator)
Parameters
comparator
IComparer<T>
Methods
Compare(Match, Match)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
public int Compare(AbstractMethodMessageHandler<T>.Match x, AbstractMethodMessageHandler<T>.Match y)
Parameters
x
AbstractMethodMessageHandler<T>.MatchThe first object to compare.
y
AbstractMethodMessageHandler<T>.MatchThe second object to compare.
Returns
- int
A signed integer that indicates the relative values of
x
andy
, as shown in the following table. ValueMeaning
Less than zero
x
is less thany
.Zero
x
equalsy
.Greater than zero
x
is greater thany
.