public static interface BitmapIndex.BitmapBuilder extends BitmapIndex.Bitmap
Modifier and Type | Method and Description |
---|---|
boolean |
add(AnyObjectId objectId,
int type)
Adds the id and the existing bitmap for the id, if one exists, 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.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
boolean add(AnyObjectId objectId, int type)
objectId
- the object IDtype
- the Git object type. See Constants
.boolean contains(AnyObjectId objectId)
objectId
- the object IDvoid 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()
Copyright © 2015 Eclipse JGit Project. All rights reserved.