com.jidesoft.utils.DefaultWildcardSupport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jide-oss Show documentation
Show all versions of jide-oss Show documentation
JIDE Common Layer (Professional Swing Components)
package com.jidesoft.utils;
/**
* Default implementation of {@link WildcardSupport}. It uses the following three chars as the wildcards.
*
* - '?' The question mark indicates there is zero or one of the preceding element. For example, colou?r matches both "color" and "colour".
*
- '*' The asterisk indicates there are zero or more of the preceding element. For example, ab*c matches "ac", "abc", "abbc", "abbbc", and so on.
*
- '+' The plus sign indicates that there is one or more of the preceding element. For example, ab+c matches "abc", "abbc", "abbbc", and so on, but not "ac".
*
*/
public class DefaultWildcardSupport extends AbstractWildcardSupport {
public char getZeroOrOneQuantifier() {
return '?';
}
public char getZeroOrMoreQuantifier() {
return '*';
}
public char getOneOrMoreQuantifier() {
return '+';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy