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
compareTostringThe value each key is compared with.
compareWithStringOperatorHow the comparison is made.
Exceptions
- ArgumentNullException
compareTois null.
Properties
CompareToValue
The value each key is compared with.
public string CompareToValue { get; }
Property Value
CompareWithOperator
How the comparison is made.
public StringOperator CompareWithOperator { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
keyTKey
Returns
IsMatch(TKey)
Whether key is one of the keys this matcher selects.
public bool IsMatch(TKey key)
Parameters
keyTKeyThe key to test.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.