/** * Sets if the matching will be case insensitive (UNICODE compliant); default is {@code false}. */ public void setCaseInsensitive(boolean caseInsensitive) { boolean lastCaseInsensitive = this.caseInsensitive; this.caseInsensitive = caseInsensitive; if (lastCaseInsensitive != caseInsensitive) { buildPattern(); } }
/** * @param glob * Glob with the syntax defined by {@link StringUtil#globToRegularExpression(String, boolean)}. Must not * start with {@code /}. */ public FileNameGlobMatcher(String glob) { if (glob.indexOf('/') != -1) { throw new IllegalArgumentException("A file name glob can't contain \"/\": " + glob); } this.glob = glob; buildPattern(); }
/** * Sets if the matching will be case insensitive (UNICODE compliant); default is {@code false}. */ public void setCaseInsensitive(boolean caseInsensitive) { boolean lastCaseInsensitive = this.caseInsensitive; this.caseInsensitive = caseInsensitive; if (lastCaseInsensitive != caseInsensitive) { buildPattern(); } }
/** * Sets if the matching will be case insensitive (UNICODE compliant); default is {@code false}. */ public void setCaseInsensitive(boolean caseInsensitive) { boolean lastCaseInsensitive = this.caseInsensitive; this.caseInsensitive = caseInsensitive; if (lastCaseInsensitive != caseInsensitive) { buildPattern(); } }
/** * @param glob * Glob with the syntax defined by {@link StringUtil#globToRegularExpression(String, boolean)}. Must not * start with {@code /}. */ public FileNameGlobMatcher(String glob) { if (glob.indexOf('/') != -1) { throw new IllegalArgumentException("A file name glob can't contain \"/\": " + glob); } this.glob = glob; buildPattern(); }
/** * @param glob * Glob with the syntax defined by {@link StringUtil#globToRegularExpression(String, boolean)}. Must not * start with {@code /}. */ public FileNameGlobMatcher(String glob) { if (glob.indexOf('/') != -1) { throw new IllegalArgumentException("A file name glob can't contain \"/\": " + glob); } this.glob = glob; buildPattern(); }