commit | 9793755b10d8a29fc248219fa48f9918b2e02c3a | [log] [tgz] |
---|---|---|
author | tom <tom@onlab.us> | Thu Sep 11 10:48:42 2014 -0700 |
committer | tom <tom@onlab.us> | Thu Sep 11 10:48:42 2014 -0700 |
tree | 82adea13cdc810000ece6866ef05e23730e788bc | |
parent | e52ce702261f5ea815e45a6b19ee9603433fe8cd [diff] [blame] |
Re-assembled the topology subsystem.
diff --git a/core/api/src/main/java/org/onlab/onos/net/topology/ClusterId.java b/core/api/src/main/java/org/onlab/onos/net/topology/ClusterId.java index af8f122..502eee1 100644 --- a/core/api/src/main/java/org/onlab/onos/net/topology/ClusterId.java +++ b/core/api/src/main/java/org/onlab/onos/net/topology/ClusterId.java
@@ -27,6 +27,15 @@ return new ClusterId(id); } + /** + * Returns the backing integer index. + * + * @return backing integer index + */ + public int index() { + return id; + } + @Override public int hashCode() { return Objects.hash(id);