org.quartz.impl.matchers
Class NameMatcher<T extends Key>
java.lang.Object
org.quartz.impl.matchers.StringMatcher<T>
org.quartz.impl.matchers.NameMatcher<T>
- All Implemented Interfaces:
- java.io.Serializable, Matcher<T>
public class NameMatcher<T extends Key>
- extends StringMatcher<T>
Matches on name (ignores group) property of Keys.
- Author:
- jhouse
- See Also:
- Serialized Form
Method Summary |
protected java.lang.String |
getValue(T key)
|
static NameMatcher |
nameContains(java.lang.String compareTo)
Create a NameMatcher that matches names containing the given string. |
static NameMatcher |
nameEndsWith(java.lang.String compareTo)
Create a NameMatcher that matches names ending with the given string. |
static NameMatcher |
nameEquals(java.lang.String compareTo)
Create a NameMatcher that matches names equaling the given string. |
static NameMatcher |
nameStartsWith(java.lang.String compareTo)
Create a NameMatcher that matches names starting with the given string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NameMatcher
protected NameMatcher(java.lang.String compareTo,
StringMatcher.StringOperatorName compareWith)
nameEquals
public static NameMatcher nameEquals(java.lang.String compareTo)
- Create a NameMatcher that matches names equaling the given string.
nameStartsWith
public static NameMatcher nameStartsWith(java.lang.String compareTo)
- Create a NameMatcher that matches names starting with the given string.
nameEndsWith
public static NameMatcher nameEndsWith(java.lang.String compareTo)
- Create a NameMatcher that matches names ending with the given string.
nameContains
public static NameMatcher nameContains(java.lang.String compareTo)
- Create a NameMatcher that matches names containing the given string.
getValue
protected java.lang.String getValue(T key)
- Specified by:
getValue
in class StringMatcher<T extends Key>
Copyright 2001-2019, Terracotta, Inc.