Class NetworkEndpoint

  • java.lang.Object
    • com.here.sdk.core.NetworkEndpoint

  • public final class NetworkEndpoint
    extends java.lang.Object

    Network endpoint.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.net.InetAddress address
      The IP Address of the network endpoint.
      java.lang.Integer port
      Optional port number of the network endpoint.
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkEndpoint​(java.net.InetAddress address)
      Creates a new instance.
      NetworkEndpoint​(java.net.InetAddress address, java.lang.Integer port)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • address

        @NonNull
        public java.net.InetAddress address

        The IP Address of the network endpoint.

      • port

        @Nullable
        public java.lang.Integer port

        Optional port number of the network endpoint.

    • Constructor Detail

      • NetworkEndpoint

        public NetworkEndpoint​(@NonNull
                               java.net.InetAddress address,
                               @Nullable
                               java.lang.Integer port)

        Creates a new instance.

        Parameters:
        address -

        The IP Address of the network endpoint.

        port -

        Optional port number of the network endpoint.

      • NetworkEndpoint

        public NetworkEndpoint​(@NonNull
                               java.net.InetAddress address)

        Creates a new instance.

        Parameters:
        address -

        The IP Address of the network endpoint.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object