If you use EnumSet to store ordinary binary values ββ(1,2,4, etc.), then when the number of elements is less than 64, it seems to me that this is stored as a bit vector and it seems efficient for how long. There is an easy way to get the meaning of this long time. I want a quick and easy way to save the contents of a set in a file or database.
If I did it the old way, I would just use a long one and make a bit twisting myself, despite all the type problems, etc.
java
Miles d
source share