Class DefaultPortDescription

    • Constructor Detail

      • DefaultPortDescription

        protected DefaultPortDescription()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Description copied from interface: PortDescription
        Indicates whether or not the port is up and active.
        Specified by:
        isEnabled in interface PortDescription
        Returns:
        true if the port is active and has carrier signal
      • isRemoved

        public boolean isRemoved()
        Description copied from interface: PortDescription
        Indicates whether or not the port was removed.
        Specified by:
        isRemoved in interface PortDescription
        Returns:
        true if the port is removed.
      • portSpeed

        public long portSpeed()
        Description copied from interface: PortDescription
        Returns the current port speed in Mbps.
        Specified by:
        portSpeed in interface PortDescription
        Returns:
        current port speed
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • builder

        public static DefaultPortDescription.Builder builder​(PortDescription desc)
        Creates port description builder inheriting with default parameters, from specified port description.
        Parameters:
        desc - to inherit default from
        Returns:
        builder