Replacement of PayloadUUID.getPayLoad() method #881
-
Hi All,
I want to know, if this is the correct replacement for
Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, this would work, but it is very inefficient. I suggest change the key to a byte array:
Note that the |
Beta Was this translation helpful? Give feedback.
Yes, this would work, but it is very inefficient. I suggest change the key to a byte array:
Note that the
get()
method iterates through all keys. If you have many keys, this linear cost will decrease performance. You could create your own subclass ofFlagsUUID
, e.g. by copyingExtendedUUID
and replacingkeys
andvalues
with aConcurrentHashmap
.