(o container)
| 340 | } |
| 341 | |
| 342 | func (bc *bitmapContainer) equals(o container) bool { |
| 343 | srb, ok := o.(*bitmapContainer) |
| 344 | if ok { |
| 345 | if srb.cardinality != bc.cardinality { |
| 346 | return false |
| 347 | } |
| 348 | return bitmapEquals(bc.bitmap, srb.bitmap) |
| 349 | } |
| 350 | |
| 351 | // use generic comparison |
| 352 | if bc.getCardinality() != o.getCardinality() { |
| 353 | return false |
| 354 | } |
| 355 | ait := o.getShortIterator() |
| 356 | bit := bc.getShortIterator() |
| 357 | |
| 358 | for ait.hasNext() { |
| 359 | if bit.next() != ait.next() { |
| 360 | return false |
| 361 | } |
| 362 | } |
| 363 | return true |
| 364 | } |
| 365 | |
| 366 | func (bc *bitmapContainer) iaddReturnMinimized(i uint16) container { |
| 367 | bc.iadd(i) |
nothing calls this directly
no test coverage detected