You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/01/21 00:10:55 UTC
DO NOT REPLY [Bug 26297] New: -
[collections] BitSetUtils class, toIndexArray and fromIndexArray
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26297>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26297
[collections] BitSetUtils class, toIndexArray and fromIndexArray
Summary: [collections] BitSetUtils class, toIndexArray and
fromIndexArray
Product: Commons
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Collections
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: heuermh@acm.org
Attached is a new clas BitSetUtils, with methods
/**
* Return an int array of the indicies of set bits in the
* specified bit set.
*
* @param bitSet bit set, must not be null
*/
public static final int[] toIndexArray(final BitSet bitSet)
and
/**
* Return a bit set of the specified size with the indices specified
* in <code>indexArray</code> set to true.
*
* @param size initial size of the bit set
* @param indexArray array of indices to set to true, must not be null
*/
public static final BitSet fromIndexArray(final int size,
final int[] indexArray)
for possible inclusion in [collections] post-3.0-release
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org