org.eclipse.jgit.revwalk.filter
Class AndRevFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.eclipse.jgit.revwalk.filter.AndRevFilter

public abstract class AndRevFilter
extends RevFilter

Includes a commit only if all subfilters include the same commit.

Classic shortcut behavior is used, so evaluation of the RevFilter.include(RevWalk, RevCommit) method stops as soon as a false result is obtained. Applications can improve filtering performance by placing faster filters that are more likely to reject a result earlier in the list.


Field Summary
 
Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE
 
Constructor Summary
AndRevFilter()
           
 
Method Summary
static RevFilter create(Collection<RevFilter> list)
          Create a filter around many filters, all of which must match.
static RevFilter create(RevFilter[] list)
          Create a filter around many filters, all of which must match.
static RevFilter create(RevFilter a, RevFilter b)
          Create a filter with two filters, both of which must match.
 
Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
clone, include, negate, requiresCommitBody, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndRevFilter

public AndRevFilter()
Method Detail

create

public static RevFilter create(RevFilter a,
                               RevFilter b)
Create a filter with two filters, both of which must match.

Parameters:
a - first filter to test.
b - second filter to test.
Returns:
a filter that must match both input filters.

create

public static RevFilter create(RevFilter[] list)
Create a filter around many filters, all of which must match.

Parameters:
list - list of filters to match against. Must contain at least 2 filters.
Returns:
a filter that must match all input filters.

create

public static RevFilter create(Collection<RevFilter> list)
Create a filter around many filters, all of which must match.

Parameters:
list - list of filters to match against. Must contain at least 2 filters.
Returns:
a filter that must match all input filters.


Copyright © 2012. All Rights Reserved.