claudemartin / enum-bit-set

EnumSet and BitSet in one!
http://claude-martin.ch/enumbitset/
7 stars 3 forks source link

Configurable bit position per enum #1

Closed iamtommo closed 4 years ago

iamtommo commented 7 years ago

Nice project you have here.

The EnumBitSet would be perfect for my use case, except the the fact that for each enum, the bit position must be configurable and cannot rely on the enum ordinal.

Any chance this may be introduced? Otherwise a PR may be in order.

claudemartin commented 6 years ago

this is just a side project of mine. I'm now woring on migrating to Java 10 and Junit 5. Maybe I'll add the possibility to override the value used in enums.

claudemartin commented 6 years ago

This would not be possible. The whole point is that EnumBitSet uses enums. It uses EnumSet internally. So just use a GeneralDomainBitSet: https://gist.github.com/claudemartin/7f7da857c4530050be55917e44caafca