org.gitective.core.filter.commit
Class OrCommitFilter

java.lang.Object
  extended by org.eclipse.jgit.revwalk.filter.RevFilter
      extended by org.gitective.core.filter.commit.CommitFilter
          extended by org.gitective.core.filter.commit.CompositeCommitFilter
              extended by org.gitective.core.filter.commit.OrCommitFilter
All Implemented Interfaces:
Cloneable

public class OrCommitFilter
extends CompositeCommitFilter

Composite filter that only includes commits that are included by at least one child filter that has been added to this filter.

This filter stops matching against child filters when the first child filter matches the current commit.


Field Summary
 
Fields inherited from class org.gitective.core.filter.commit.CompositeCommitFilter
filters
 
Fields inherited from class org.gitective.core.filter.commit.CommitFilter
repository
 
Fields inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
ALL, MERGE_BASE, NO_MERGES, NONE
 
Constructor Summary
OrCommitFilter()
          Create an empty or commit filter
OrCommitFilter(org.eclipse.jgit.revwalk.filter.RevFilter... filters)
          Create an or commit filter with given child filters
 
Method Summary
 org.eclipse.jgit.revwalk.filter.RevFilter clone()
          Clones this filter.
 boolean include(org.eclipse.jgit.revwalk.RevWalk walker, org.eclipse.jgit.revwalk.RevCommit commit)
           
 
Methods inherited from class org.gitective.core.filter.commit.CompositeCommitFilter
add, cloneFilters, getSize, reset, setRepository
 
Methods inherited from class org.gitective.core.filter.commit.CommitFilter
include, setStop
 
Methods inherited from class org.eclipse.jgit.revwalk.filter.RevFilter
negate, requiresCommitBody, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrCommitFilter

public OrCommitFilter()
Create an empty or commit filter


OrCommitFilter

public OrCommitFilter(org.eclipse.jgit.revwalk.filter.RevFilter... filters)
Create an or commit filter with given child filters

Parameters:
filters -
Method Detail

include

public boolean include(org.eclipse.jgit.revwalk.RevWalk walker,
                       org.eclipse.jgit.revwalk.RevCommit commit)
                throws IOException
Specified by:
include in class org.eclipse.jgit.revwalk.filter.RevFilter
Throws:
IOException

clone

public org.eclipse.jgit.revwalk.filter.RevFilter clone()
Description copied from class: CommitFilter
Clones this filter.

The default implementation throws a UnsupportedOperationException and sub-classes should override if filter cloning is supported.

Overrides:
clone in class CommitFilter
See Also:
RevFilter.clone()


Copyright © 2011-2012. All Rights Reserved.