public abstract class ObjectFilter
extends java.lang.Object
Applications should install the filter on an ObjectWalk by
ObjectWalk.setObjectFilter(ObjectFilter)
prior to starting traversal.
| Modifier and Type | Class and Description |
|---|---|
private static class |
ObjectFilter.AllFilter |
| 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, java.io.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 typejava.io.IOException - an object the filter needed to consult to determine its
answer could not be read.