Project

General

Profile

Actions

Bug #10299

closed

Probably, a bug in BitVector.isAll{Set,Reset}

Added by Alexander Kamkin almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Bit Vector
Target version:
Start date:
04/22/2020
Due date:
% Done:

100%

Estimated time:
Detected in build:
git
Platform:
Published in build:
0.4.34-beta-200916

Description

Does it work properly if the bit length is not multiple of 8?

  public final boolean isAllSet() {
    for(int index = 0; index < this.getByteSize(); ++index) {
      if (-1 != this.getByte(index)) {
        return false;
      }
    }

    return true;
  }
</post>
Actions

Also available in: Atom PDF