Class TpPort


  • public class TpPort
    extends Object
    Representation of a transport layer port.
    • Constructor Detail

      • TpPort

        protected TpPort​(int value)
        Constructs a new TpPort.
        Parameters:
        value - the transport layer port
    • Method Detail

      • tpPort

        public static TpPort tpPort​(int value)
        Converts an integer into a TpPort.
        Parameters:
        value - an integer representing the transport layer port
        Returns:
        a TpPort
        Throws:
        IllegalArgumentException - if the value is invalid
      • toInt

        public int toInt()
        Returns the integer value for this transport port.
        Returns:
        an integer value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object