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:
parent
f523f21e59
commit
73474466eb
|
@ -318,7 +318,8 @@ public boolean removeAllOrNone(PackBitmapIndex index) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
BitmapIndexImpl getBitmapIndex() {
|
@Override
|
||||||
|
public BitmapIndexImpl getBitmapIndex() {
|
||||||
return BitmapIndexImpl.this;
|
return BitmapIndexImpl.this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,5 +204,12 @@ public interface BitmapBuilder extends Bitmap {
|
||||||
|
|
||||||
/** @return the number of elements in the bitmap. */
|
/** @return the number of elements in the bitmap. */
|
||||||
int cardinality();
|
int cardinality();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The BitmapIndex for this BitmapBuilder.
|
||||||
|
*
|
||||||
|
* @since 4.2
|
||||||
|
*/
|
||||||
|
BitmapIndex getBitmapIndex();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue