Top Description Inners Fields Constructors Methods
org.eclipse.jgit.revwalk.filter

public abstract Class ObjectFilter

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.revwalk.filter.ObjectFilter.AllFilter, org.eclipse.jgit.revwalk.BitmapWalker.BitmapObjectFilter
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException, org.eclipse.jgit.lib.AnyObjectId, org.eclipse.jgit.revwalk.ObjectWalk

Selects interesting objects when walking.

Applications should install the filter on an ObjectWalk by org.eclipse.jgit.revwalk.ObjectWalk#setObjectFilter(ObjectFilter) prior to starting traversal.

Since
4.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final ObjectFilter
ALL

Default filter that always returns true.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

true if the named object should be included in the walk.
include
(ObjectWalk
the active walker this filter is being invoked from within.
walker
,
AnyObjectId
the object currently being tested.
objid
)

Determine if the named object should be included in the walk.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALLback to summary
public static final ObjectFilter ALL

Default filter that always returns true.

Constructor Detail

ObjectFilterback to summary
public ObjectFilter()

Method Detail

includeback to summary
public abstract boolean include(ObjectWalk walker, AnyObjectId objid) throws MissingObjectException, IncorrectObjectTypeException, IOException

Determine if the named object should be included in the walk.

Parameters
walker:ObjectWalk

the active walker this filter is being invoked from within.

objid:AnyObjectId

the object currently being tested.

Returns:boolean

true if the named object should be included in the walk.

Exceptions
MissingObjectException:
an object the filter needed to consult to determine its answer was missing
IncorrectObjectTypeException:
an object the filter needed to consult to determine its answer was of the wrong type
IOException:
an object the filter needed to consult to determine its answer could not be read.
org.eclipse.jgit.revwalk.filter back to summary

private final Class ObjectFilter.AllFilter

extends ObjectFilter
Class Inheritance

Field Summary

Inherited from org.eclipse.jgit.revwalk.filter.ObjectFilter:
ALL

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
include(ObjectWalk
the active walker this filter is being invoked from within.
walker
,
AnyObjectId
the object currently being tested.
o
)

Implements abstract org.eclipse.jgit.revwalk.filter.ObjectFilter.include.

Determine if the named object should be included in the walk.

Constructor Detail

AllFilterback to summary
private AllFilter()

Method Detail

includeback to summary
public boolean include(ObjectWalk walker, AnyObjectId o)

Implements abstract org.eclipse.jgit.revwalk.filter.ObjectFilter.include.

Doc from org.eclipse.jgit.revwalk.filter.ObjectFilter.include.

Determine if the named object should be included in the walk.

Parameters
walker:ObjectWalk

the active walker this filter is being invoked from within.

o:AnyObjectId

the object currently being tested.

Returns:boolean

true if the named object should be included in the walk.

Annotations
@Override