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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to