public class TypeCountFilter extends BaseTreeFilter
repository| Constructor and Description |
|---|
TypeCountFilter(int type)
Create filter that counts the configured type
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.jgit.treewalk.filter.TreeFilter |
clone()
Clones the tree filter.
|
static TypeCountFilter |
file()
Create filter that counts files
|
long |
getCount()
Get entry type count
|
int |
getType()
Get type being counted
|
boolean |
include(org.eclipse.jgit.treewalk.TreeWalk walker) |
BaseTreeFilter |
reset()
Reset the filter.
|
static TypeCountFilter |
submodule()
Count filter that counts submodules
|
static TypeCountFilter |
symlink()
Create filter that counts symbolic links
|
static TypeCountFilter |
tree()
Create filter that counts trees
|
include, include, setRepository, setStop, shouldBeRecursive, wrappublic TypeCountFilter(int type)
type - public static TypeCountFilter submodule()
public static TypeCountFilter file()
public static TypeCountFilter symlink()
public static TypeCountFilter tree()
public long getCount()
public int getType()
public BaseTreeFilter reset()
BaseTreeFilterreset in class BaseTreeFilterpublic boolean include(org.eclipse.jgit.treewalk.TreeWalk walker)
throws IOException
include in class org.eclipse.jgit.treewalk.filter.TreeFilterIOExceptionpublic org.eclipse.jgit.treewalk.filter.TreeFilter clone()
BaseTreeFilter
The default implementation throws a UnsupportedOperationException
and sub-classes should override if filter cloning is supported.
clone in class BaseTreeFilterTreeFilter.clone()Copyright © 2011-2016. All Rights Reserved.