R
Roedy Green
You might think
EnumSet.contains( subset ) would mean containsAnyOf or containsAllOf
but it is meaningless.
There is an EnumSet.containsAll but no EnumSet.containsAnyOf
It seems odd Set and EnumSet don't directly support the usual things
mathematicians do with sets,
union
intersection
isSubsetOf
isSuperSetOf
The operations would be so fast internally if Oracle used the binary
logic ops to handle bit strings, rather than flat-footed processing an
element at a time.
What think you?
--
Roedy Green Canadian Mind Products http://mindprod.com
Ironically, even though the Internet was created by the US military
[DARPA (Defense Advanced Research Projects Agency)]
to withstand a nuclear attack, it is almost defenceless against malice
from any of its users
EnumSet.contains( subset ) would mean containsAnyOf or containsAllOf
but it is meaningless.
There is an EnumSet.containsAll but no EnumSet.containsAnyOf
It seems odd Set and EnumSet don't directly support the usual things
mathematicians do with sets,
union
intersection
isSubsetOf
isSuperSetOf
The operations would be so fast internally if Oracle used the binary
logic ops to handle bit strings, rather than flat-footed processing an
element at a time.
What think you?
--
Roedy Green Canadian Mind Products http://mindprod.com
Ironically, even though the Internet was created by the US military
[DARPA (Defense Advanced Research Projects Agency)]
to withstand a nuclear attack, it is almost defenceless against malice
from any of its users