Table of Contents

Class SelectionCandidateComparer

Namespace
ZeroInstall.Services.Solvers
Assembly
ZeroInstall.Services.dll
public sealed class SelectionCandidateComparer : IComparer<SelectionCandidate>
Inheritance
SelectionCandidateComparer
Implements
Inherited Members

Constructors

SelectionCandidateComparer(Stability, NetworkLevel, LanguageSet, Predicate<Implementation>)

public SelectionCandidateComparer(Stability stabilityPolicy, NetworkLevel networkUse, LanguageSet languages, Predicate<Implementation> isCached)

Parameters

stabilityPolicy Stability

Implementations at this stability level or higher are preferred. Lower levels are used only if there is no other choice.

networkUse NetworkLevel

Controls how liberally network access is attempted.

languages LanguageSet

The preferred languages for the implementation.

isCached Predicate<Implementation>

sed to determine which implementations are already cached in the IImplementationStore.

Methods

Compare(SelectionCandidate?, SelectionCandidate?)

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

public int Compare(SelectionCandidate? x, SelectionCandidate? y)

Parameters

x SelectionCandidate

The first object to compare.

y SelectionCandidate

The second object to compare.

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.