Class ChassisId


  • public final class ChassisId
    extends Identifier<java.lang.Long>
    The class representing a network device chassisId. This class is immutable.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChassisId()
      Default constructor.
      ChassisId​(long value)
      Constructor from a long value.
      ChassisId​(java.lang.String value)
      Constructor from a string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object that)
      Compares two device key identifiers for equality.
      int hashCode()
      Returns the hashcode of the identifier.
      java.lang.String toString()
      Convert the Chassis Id value to a ':' separated hexadecimal string.
      long value()
      Get the value of the chassis id.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ChassisId

        public ChassisId()
        Default constructor.
      • ChassisId

        public ChassisId​(long value)
        Constructor from a long value.
        Parameters:
        value - the value to use.
      • ChassisId

        public ChassisId​(java.lang.String value)
        Constructor from a string.
        Parameters:
        value - the value to use.
    • 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:
        toString in class Identifier<java.lang.Long>
        Returns:
        the Chassis Id value as a ':' separated hexadecimal string.
      • hashCode

        public int hashCode()
        Description copied from class: Identifier
        Returns the hashcode of the identifier.
        Overrides:
        hashCode in class Identifier<java.lang.Long>
        Returns:
        hashcode
      • equals

        public boolean equals​(java.lang.Object that)
        Description copied from class: Identifier
        Compares two device key identifiers for equality.
        Overrides:
        equals in class Identifier<java.lang.Long>
        Parameters:
        that - to compare against
        Returns:
        true if the objects are equal, false otherwise.