Package org.onlab.packet
Class ChassisId
- java.lang.Object
-
- org.onlab.util.Identifier<java.lang.Long>
-
- org.onlab.packet.ChassisId
-
public final class ChassisId extends Identifier<java.lang.Long>
The class representing a network device chassisId. This class is immutable.
-
-
Field Summary
-
Fields inherited from class org.onlab.util.Identifier
identifier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object that)Compares two device key identifiers for equality.inthashCode()Returns the hashcode of the identifier.java.lang.StringtoString()Convert the Chassis Id value to a ':' separated hexadecimal string.longvalue()Get the value of the chassis id.-
Methods inherited from class org.onlab.util.Identifier
id
-
-
-
-
Method Detail
-
value
public long value()
Get the value of the chassis id.- Returns:
- the value of the chassis id.
-
toString
public java.lang.String toString()
Convert the Chassis Id value to a ':' separated hexadecimal string.- Overrides:
toStringin classIdentifier<java.lang.Long>- Returns:
- the Chassis Id value as a ':' separated hexadecimal string.
-
hashCode
public int hashCode()
Description copied from class:IdentifierReturns the hashcode of the identifier.- Overrides:
hashCodein classIdentifier<java.lang.Long>- Returns:
- hashcode
-
equals
public boolean equals(java.lang.Object that)
Description copied from class:IdentifierCompares two device key identifiers for equality.- Overrides:
equalsin classIdentifier<java.lang.Long>- Parameters:
that- to compare against- Returns:
- true if the objects are equal, false otherwise.
-
-