Submitted On 23-DEC-2006
dmbdmb
Totally agree. almost word for word, infact.
bug_id=6505531
Submitted On 07-MAY-2007
pbwest
If the maximum size of the BitSet is known at instantiation, a workaround while we wait for 6410729 is to create a class with two BitSets, with one being the inverse of the other. Define those set manipulation operations in which you are interested to update both BitSets. Then the previousSetBit and previousClearBit operations can be defined by means of nextSetBit and nextClearBit on the inverse BitSet.
Submitted On 07-MAY-2007
pbwest
Replace all occurrences of "inverse" in my previous post with "reverse". That is the bits in the 2nd set are maintained in reverse order of the 1st set.
Submitted On 10-JUN-2007
pbwest
I have posted an implementation of this on the jdk-collaboration dev forum at
https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=19753
No-one seems to be monitoring the forum, so maybe I've got the wrong idea about the way to contribute.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|