Class HostPortList


  • public class HostPortList
    extends Object

    HostPortList: data object that contains a collection of HostPort objects.

    • Constructor Summary

      Constructors 
      Constructor Description
      HostPortList()
      Create empty HostPortList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(HostPort hostPort)
      Add HostPort object
      HostPort get​(int index)
      Get HostPort object at index, null if out of bounds
      int size()
      Get number of HostPort objects
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HostPortList

        public HostPortList()
        Create empty HostPortList
    • Method Detail

      • add

        public void add​(HostPort hostPort)
        Add HostPort object
        Parameters:
        hostPort -
      • size

        public int size()
        Get number of HostPort objects
        Returns:
        number of HostPort objects
      • get

        public HostPort get​(int index)
        Get HostPort object at index, null if out of bounds
        Parameters:
        index - index
        Returns:
        HostPort object at index, null if out of bounds