All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jidesoft.utils.DefaultWildcardSupport Maven / Gradle / Ivy

There is a newer version: 3.6.18
Show newest version
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