Make DOMDataTreeIdentifier implement Comparable 34/15634/3
authorRobert Varga <rovarga@cisco.com>
Mon, 23 Feb 2015 21:45:52 +0000 (22:45 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 24 Feb 2015 07:04:52 +0000 (08:04 +0100)
commit5a0309ffeb2a770a3a5f750f32085bb3d90e70c4
tree44c459119545be1139c7146f9ba4960b9416c3f1
parent8cfbc45d2679de6d39f9bedde07c38218bc6955a
Make DOMDataTreeIdentifier implement Comparable

We can easily define total ordering on this class, which is useful for
maintaining order so that we can find the longest-prefix match easily by
iterating over the keys in the natural ordering.

Change-Id: Ie2f83ea494fe278df4acc1cb6059dae440ef8f37
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeIdentifier.java