Package org.onosproject.net.topology
Class ClusterId
- java.lang.Object
-
- org.onlab.util.Identifier<java.lang.Integer>
-
- org.onosproject.net.topology.ClusterId
-
public final class ClusterId extends Identifier<java.lang.Integer>
Representation of the topology cluster identity.
-
-
Field Summary
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterId
clusterId(int id)
Returns the cluster identifier, represented by the specified integer serial number.int
index()
Returns the backing integer index.-
Methods inherited from class org.onlab.util.Identifier
equals, hashCode, id, toString
-
-
-
-
Method Detail
-
clusterId
public static ClusterId clusterId(int id)
Returns the cluster identifier, represented by the specified integer serial number.- Parameters:
id
- integer serial number- Returns:
- cluster identifier
-
index
public int index()
Returns the backing integer index.- Returns:
- backing integer index
-
-