Class ObjectFilter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  ObjectFilter.AllFilter  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ObjectFilter ALL
      Default filter that always returns true.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectFilter()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean include​(ObjectWalk walker, AnyObjectId objid)
      Determine if the named object should be included in the walk.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ALL

        public static final ObjectFilter ALL
        Default filter that always returns true.
    • Constructor Detail

      • ObjectFilter

        public ObjectFilter()
    • Method Detail

      • include

        public abstract boolean include​(ObjectWalk walker,
                                        AnyObjectId objid)
                                 throws MissingObjectException,
                                        IncorrectObjectTypeException,
                                        java.io.IOException
        Determine if the named object should be included in the walk.
        Parameters:
        walker - the active walker this filter is being invoked from within.
        objid - the object currently being tested.
        Returns:
        true if the named object should be included in the walk.
        Throws:
        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
        java.io.IOException - an object the filter needed to consult to determine its answer could not be read.