congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MessageRevFilter$SubStringSearch.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.eclipse.jgit.revwalk.filter.MessageRevFilter$SubStringSearch.<init> (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: 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);
}
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: 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);
}
org.eclipse.jgit.revwalk.filterMessageRevFilter$SubStringSearch<init>

Popular methods of MessageRevFilter$SubStringSearch

    Popular in Java

    • Making http requests using okhttp
    • compareTo (BigDecimal)
    • runOnUiThread (Activity)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • FileInputStream (java.io)
      An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
    • Path (java.nio.file)
    • Date (java.sql)
      A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
    • NumberFormat (java.text)
      The abstract base class for all number formats. This class provides the interface for formatting and
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    • JTable (javax.swing)
    • 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