Make UnsignedLongSet.Entry immutable 22/98422/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 10 Nov 2021 19:44:05 +0000 (20:44 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 11 Nov 2021 08:30:40 +0000 (09:30 +0100)
commit8f21fe2e71d6260ffc6782f6f9e4d452f138ccb7
tree6f6fd0b68743a320b3ca6afcb8c02e7dc5737e50
parent968834bfb4d8ba02c11a8ff5e4dd102a6eddc6b3
Make UnsignedLongSet.Entry immutable

Having entries mutable is just a drag when transferring them to
mutable, as we need to perform deep copies. Let's turn them into
immutables and be done with it.

JIRA: CONTROLLER-2015
Change-Id: I3be807cbdf71a51e6b9506e0932857a230924986
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 245165804cb8c11340fa5b225e5cccbe32c01337)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ImmutableUnsignedLongSet.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/MutableUnsignedLongSet.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/UnsignedLongSet.java