Table of Contents

Class MimeType.SpecificityComparator<T>

Namespace
Steeltoe.Common.Util
Assembly
Steeltoe.Common.dll
public class MimeType.SpecificityComparator<T> : IComparer<T> where T : MimeType

Type Parameters

T
Inheritance
MimeType.SpecificityComparator<T>
Implements
Inherited Members

Methods

Compare(T, T)

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

public int Compare(T mimeType1, T mimeType2)

Parameters

mimeType1 T
mimeType2 T

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.

CompareParameters(T, T)

protected int CompareParameters(T mimeType1, T mimeType2)

Parameters

mimeType1 T
mimeType2 T

Returns

int