You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2011/07/19 06:07:58 UTC
[jira] [Commented] (LANG-730) EnumSet -> BitVector
[ https://issues.apache.org/jira/browse/LANG-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067484#comment-13067484 ]
Henri Yandell commented on LANG-730:
------------------------------------
A few questions:
* What's the use case for this method? Why store in a long bit vector?
* Have you looked at the BitField class?
* Perhaps throw an exception when there are more than 64 values in the Enum?
> EnumSet -> BitVector
> --------------------
>
> Key: LANG-730
> URL: https://issues.apache.org/jira/browse/LANG-730
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.0
> Reporter: Nelson Carpentier
> Priority: Minor
> Fix For: 3.x
>
> Attachments: EnumUtils_bitVector.txt
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I have attached a proposed change for two methods that will convert an EnumSet into a (long) bit vector, and the inverse method that will convert a (long) bit vector.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira