Class StartsWithTextFilter

  • All Implemented Interfaces:
    TextFilter

    public class StartsWithTextFilter
    extends MatchesPatternTextFilter
    A filter that will pass text when it starts with the filter text.
    • Constructor Detail

      • StartsWithTextFilter

        public StartsWithTextFilter​(java.lang.String filterText,
                                    boolean caseSensitive,
                                    boolean allowGlobbing)
    • Method Detail

      • isSubFilterOf

        public boolean isSubFilterOf​(TextFilter parentFilter)
        Description copied from interface: TextFilter
        Returns true if this filter is a more specific filter of the given filter. This is specific to the implementation. Some filters cannot be sub-filters of another filter, such as the 'matches exactly' filter. Contrastingly, a 'starts with' filter can have a sub-filter; for example, for a 'starts with' filter, 'cat' is a sub-filter of 'ca', as 'cat' starts with 'ca'.
        Parameters:
        parentFilter - the potential parent filter
        Returns:
        true if this filter is a more specific filter of the given filter.