Interface BitmapIndex.BitmapBuilder

    • Method Detail

      • contains

        boolean contains​(AnyObjectId objectId)
        Whether the bitmap has the id set.
        Parameters:
        objectId - the object ID
        Returns:
        whether the bitmap currently contains the object ID
      • addObject

        BitmapIndex.BitmapBuilder addObject​(AnyObjectId objectId,
                                            int type)
        Adds the id to the bitmap.
        Parameters:
        objectId - the object ID
        type - the Git object type. See Constants.
        Returns:
        the current builder.
        Since:
        4.2
      • remove

        void remove​(AnyObjectId objectId)
        Remove the id from the bitmap.
        Parameters:
        objectId - the object ID
      • removeAllOrNone

        boolean removeAllOrNone​(PackBitmapIndex bitmapIndex)
        Determines if the entire bitmap index is contained in the bitmap. If it is, the matching bits are removed from the bitmap and true is returned. If the bitmap index is null, false is returned.
        Parameters:
        bitmapIndex - the bitmap index to check if it is completely contained inside of the current bitmap.
        Returns:
        true if the bitmap index was a complete match.
      • cardinality

        int cardinality()
        Returns:
        the number of elements in the bitmap.
      • getBitmapIndex

        BitmapIndex getBitmapIndex()
        Get the BitmapIndex for this BitmapBuilder.
        Returns:
        the BitmapIndex for this BitmapBuilder
        Since:
        4.2