public static interface BitmapIndex.BitmapBuilder extends BitmapIndex.Bitmap
Modifier and Type | Method and Description |
---|---|
BitmapIndex.BitmapBuilder |
addObject(AnyObjectId objectId,
int type)
Adds the id to the bitmap.
|
BitmapIndex.BitmapBuilder |
andNot(BitmapIndex.Bitmap other)
Bitwise-AND-NOT the current bitmap with the value from the other
bitmap.
|
BitmapIndex.Bitmap |
build() |
int |
cardinality() |
boolean |
contains(AnyObjectId objectId)
Whether the bitmap has the id set.
|
BitmapIndex |
getBitmapIndex()
Get the BitmapIndex for this BitmapBuilder.
|
BitmapIndex.BitmapBuilder |
or(BitmapIndex.Bitmap other)
Bitwise-OR the current bitmap with the value from the other bitmap.
|
void |
remove(AnyObjectId objectId)
Remove the id from the bitmap.
|
boolean |
removeAllOrNone(PackBitmapIndex bitmapIndex)
Determines if the entire bitmap index is contained in the bitmap.
|
BitmapIndex.BitmapBuilder |
xor(BitmapIndex.Bitmap other)
Bitwise-XOR the current bitmap with the value from the other bitmap.
|
iterator
forEach, spliterator
boolean contains(AnyObjectId objectId)
objectId
- the object IDBitmapIndex.BitmapBuilder addObject(AnyObjectId objectId, int type)
objectId
- the object IDtype
- the Git object type. See Constants
.void remove(AnyObjectId objectId)
objectId
- the object IDBitmapIndex.BitmapBuilder or(BitmapIndex.Bitmap other)
or
in interface BitmapIndex.Bitmap
other
- the other bitmapBitmapIndex.BitmapBuilder andNot(BitmapIndex.Bitmap other)
andNot
in interface BitmapIndex.Bitmap
other
- the other bitmapBitmapIndex.BitmapBuilder xor(BitmapIndex.Bitmap other)
xor
in interface BitmapIndex.Bitmap
other
- the other bitmapBitmapIndex.Bitmap build()
boolean removeAllOrNone(PackBitmapIndex bitmapIndex)
bitmapIndex
- the bitmap index to check if it is completely contained
inside of the current bitmap.true
if the bitmap index was a complete match.int cardinality()
BitmapIndex getBitmapIndex()
Copyright © 2018 Eclipse JGit Project. All rights reserved.