commit | e2b6a2bab6a562df83c9e254cf09c30426efe399 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Tue Oct 27 11:38:51 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Oct 27 19:11:16 2015 +0000 |
tree | a5833c3df7622b1a78c6cdec028af53f2994363c | |
parent | 0fa6d3b7451d4033df8456598b2ece4b7b5d596c [diff] [blame] |
Fix for ONOS-3220 : Implement Comparable on intent Key. Change-Id: Ibba4a972d2e3a82b5bf9256893a82501236021cb
diff --git a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/PartitionManagerTest.java b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/PartitionManagerTest.java index 25e23d3..61d1937 100644 --- a/core/store/dist/src/test/java/org/onosproject/store/intent/impl/PartitionManagerTest.java +++ b/core/store/dist/src/test/java/org/onosproject/store/intent/impl/PartitionManagerTest.java
@@ -325,5 +325,11 @@ return Objects.equals(this.hash(), that.hash()); } + + @Override + public int compareTo(Key o) { + Long thisHash = hash(); + return thisHash.compareTo(o.hash()); + } } }