Tabnine Logo
MessageRevFilter$SubStringSearch
Code IndexAdd Tabnine to your IDE (free)

How to use
MessageRevFilter$SubStringSearch
in
org.eclipse.jgit.revwalk.filter

Best Java code snippets using org.eclipse.jgit.revwalk.filter.MessageRevFilter$SubStringSearch (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Create a message filter.
 * <p>
 * An optimized substring search may be automatically selected if the
 * pattern does not contain any regular expression meta-characters.
 * <p>
 * The search is performed using a case-insensitive comparison. The
 * character encoding of the commit message itself is not respected. The
 * filter matches on raw UTF-8 byte sequences.
 *
 * @param pattern
 *            regular expression pattern to match.
 * @return a new filter that matches the given expression against the
 *         message body of the commit.
 */
public static RevFilter create(String pattern) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  if (SubStringRevFilter.safe(pattern))
    return new SubStringSearch(pattern);
  return new PatternSearch(pattern);
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * Create a message filter.
 * <p>
 * An optimized substring search may be automatically selected if the
 * pattern does not contain any regular expression meta-characters.
 * <p>
 * The search is performed using a case-insensitive comparison. The
 * character encoding of the commit message itself is not respected. The
 * filter matches on raw UTF-8 byte sequences.
 *
 * @param pattern
 *            regular expression pattern to match.
 * @return a new filter that matches the given expression against the
 *         message body of the commit.
 */
public static RevFilter create(String pattern) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  if (SubStringRevFilter.safe(pattern))
    return new SubStringSearch(pattern);
  return new PatternSearch(pattern);
}
origin: berlam/github-bucket

/**
 * Create a message filter.
 * <p>
 * An optimized substring search may be automatically selected if the
 * pattern does not contain any regular expression meta-characters.
 * <p>
 * The search is performed using a case-insensitive comparison. The
 * character encoding of the commit message itself is not respected. The
 * filter matches on raw UTF-8 byte sequences.
 *
 * @param pattern
 *            regular expression pattern to match.
 * @return a new filter that matches the given expression against the
 *         message body of the commit.
 */
public static RevFilter create(String pattern) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  if (SubStringRevFilter.safe(pattern))
    return new SubStringSearch(pattern);
  return new PatternSearch(pattern);
}
origin: theonedev/onedev

/**
 * Create a message filter.
 * <p>
 * An optimized substring search may be automatically selected if the
 * pattern does not contain any regular expression meta-characters.
 * <p>
 * The search is performed using a case-insensitive comparison. The
 * character encoding of the commit message itself is not respected. The
 * filter matches on raw UTF-8 byte sequences.
 *
 * @param pattern
 *            regular expression pattern to match.
 * @return a new filter that matches the given expression against the
 *         message body of the commit.
 */
public static RevFilter create(String pattern) {
  if (pattern.length() == 0)
    throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);
  if (SubStringRevFilter.safe(pattern))
    return new SubStringSearch(pattern);
  return new PatternSearch(pattern);
}
org.eclipse.jgit.revwalk.filterMessageRevFilter$SubStringSearch

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now