[BGPCEP-188] Minimize usage of BitSet: create BitArray Created: 24/Feb/15  Updated: 03/Mar/19  Resolved: 05/Mar/15

Status: Resolved
Project: bgpcep
Component/s: General
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Dana Kutenicsova Assignee: Dana Kutenicsova
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 2749

 Description   

Java BitSet is not applicable to use in protocols without using util methods. Create simplified BitArray class with these features:

  • backing array type byte[]
  • fixed size (set in constructor)
  • BIG_ENDIAN
  • set(index, Boolean value) -> includes null check
  • toByteBuf(buffer) - writes the same amount of bytes as its size, regardless of how the backing byte array is filled (might be empty)
  • toByte()
  • valueOf(byte) and valueOf(byteArray)
  • content is unsigned only


 Comments   
Comment by Dana Kutenicsova [ 27/Feb/15 ]

https://git.opendaylight.org/gerrit/15668
https://git.opendaylight.org/gerrit/15793

Generated at Wed Feb 07 19:12:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.