Table of Contents

Class StringMatcher<TKey>

Namespace
Quartz
Assembly
Quartz.dll

An abstract base class for some types of matchers.

public abstract class StringMatcher<TKey> : IMatcher<TKey> where TKey : Key<TKey>

Type Parameters

TKey
Inheritance
StringMatcher<TKey>
Implements
IMatcher<TKey>
Derived
Inherited Members
Extension Methods

Constructors

StringMatcher(string, StringOperator)

Builds a matcher comparing part of a key with a value.

protected StringMatcher(string compareTo, StringOperator compareWith)

Parameters

compareTo string

The value each key is compared with.

compareWith StringOperator

How the comparison is made.

Exceptions

ArgumentNullException

compareTo is null.

Properties

CompareToValue

The value each key is compared with.

public string CompareToValue { get; }

Property Value

string

CompareWithOperator

How the comparison is made.

public StringOperator CompareWithOperator { get; }

Property Value

StringOperator

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetValue(TKey)

The part of the key this matcher compares — its name, or its group.

protected abstract string GetValue(TKey key)

Parameters

key TKey

Returns

string

IsMatch(TKey)

Whether key is one of the keys this matcher selects.

public bool IsMatch(TKey key)

Parameters

key TKey

The key to test.

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.