MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / ContainsInt

Method ContainsInt

roaring.go:1067–1069  ·  view source on GitHub ↗

ContainsInt returns true if the integer is contained in the bitmap (this is a convenience method, the parameter is casted to uint32 and Contains is called)

(x int)

Source from the content-addressed store, hash-verified

1065
1066// ContainsInt returns true if the integer is contained in the bitmap (this is a convenience method, the parameter is casted to uint32 and Contains is called)
1067func (rb *Bitmap) ContainsInt(x int) bool {
1068 return rb.Contains(uint32(x))
1069}
1070
1071// Equals returns true if the two bitmaps contain the same integers
1072func (rb *Bitmap) Equals(o interface{}) bool {

Callers 6

TestBitmapCOWFunction · 0.95
TestBitmapFunction · 0.95
equalsBitSetMethod · 0.45
equalsBitSetFunction · 0.45
equalsArrayFunction · 0.45
TestEQFunction · 0.45

Calls 1

ContainsMethod · 0.95

Tested by 5

TestBitmapCOWFunction · 0.76
TestBitmapFunction · 0.76
equalsBitSetFunction · 0.36
equalsArrayFunction · 0.36
TestEQFunction · 0.36