congrats Icon
New! Announcing our next generation AI code completions
Read here
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
    • scheduleAtFixedRate (ScheduledExecutorService)
    • startActivity (Activity)
    • getApplicationContext (Context)
    • BitSet (java.util)
      The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • AtomicInteger (java.util.concurrent.atomic)
      An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
    • 21 Best Atom Packages for 2021
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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