Replacement of PayloadUUID.getPayLoad() method #881
|
Hi All, I want to know, if this is the correct replacement for Regards, |
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 |
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 copyingExtendedUUIDand replacingkeysandvalueswith aConcurrentHashmap.