org.eclipse.jgit.treewalk.filter
Class OrTreeFilter
java.lang.Object
org.eclipse.jgit.treewalk.filter.TreeFilter
org.eclipse.jgit.treewalk.filter.OrTreeFilter
public abstract class OrTreeFilter
- extends TreeFilter
Includes a tree entry if any subfilters include the same tree entry.
Classic shortcut behavior is used, so evaluation of the
TreeFilter.include(TreeWalk)
method stops as soon as a true result is
obtained. Applications can improve filtering performance by placing faster
filters that are more likely to accept a result earlier in the list.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrTreeFilter
public OrTreeFilter()
create
public static TreeFilter create(TreeFilter a,
TreeFilter b)
- Create a filter with two filters, one of which must match.
- Parameters:
a
- first filter to test.b
- second filter to test.
- Returns:
- a filter that must match at least one input filter.
create
public static TreeFilter create(TreeFilter[] list)
- Create a filter around many filters, one of which must match.
- Parameters:
list
- list of filters to match against. Must contain at least 2
filters.
- Returns:
- a filter that must match at least one input filter.
create
public static TreeFilter create(java.util.Collection<TreeFilter> list)
- Create a filter around many filters, one of which must match.
- Parameters:
list
- list of filters to match against. Must contain at least 2
filters.
- Returns:
- a filter that must match at least one input filter.
Copyright © 2013. All Rights Reserved.