public abstract class ObjectFilter extends Object
Applications should install the filter on an ObjectWalk by
ObjectWalk.setObjectFilter(ObjectFilter)
prior to starting traversal.
| Modifier and Type | Field and Description |
|---|---|
static ObjectFilter |
ALL
Default filter that always returns true.
|
| Constructor and Description |
|---|
ObjectFilter() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
include(ObjectWalk walker,
AnyObjectId objid)
Determine if the named object should be included in the walk.
|
public static final ObjectFilter ALL
public abstract boolean include(ObjectWalk walker, AnyObjectId objid) throws MissingObjectException, IncorrectObjectTypeException, IOException
walker - the active walker this filter is being invoked from within.objid - the object currently being tested.true if the named object should be included in the walk.MissingObjectException - an object the filter needed to consult to determine its
answer was missingIncorrectObjectTypeException - an object the filter needed to consult to determine its
answer was of the wrong typeIOException - an object the filter needed to consult to determine its
answer could not be read.Copyright © 2020 Eclipse JGit Project. All rights reserved.