Make BitmapBuilder.getBitmapIndex public

Every Bitmap in current JGit code has an associated BitmapIndex.  Make
it public in BitmapBuilder to make retrieving bitmaps to OR in from
that index easier.

Change-Id: I2773aa94d8b67f12194608e6317c0792a5de21e2
This commit is contained in:
Jonathan Nieder 2015-11-03 23:20:14 -08:00
parent f523f21e59
commit 73474466eb
2 changed files with 9 additions and 1 deletions

View File

@ -318,7 +318,8 @@ public boolean removeAllOrNone(PackBitmapIndex index) {
return true;
}
BitmapIndexImpl getBitmapIndex() {
@Override
public BitmapIndexImpl getBitmapIndex() {
return BitmapIndexImpl.this;
}
}

View File

@ -204,5 +204,12 @@ public interface BitmapBuilder extends Bitmap {
/** @return the number of elements in the bitmap. */
int cardinality();
/**
* The BitmapIndex for this BitmapBuilder.
*
* @since 4.2
*/
BitmapIndex getBitmapIndex();
}
}