public static class AddrPortListMgr.EntryBlock
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
hostAddrStr
Host address string.
|
int |
portNumber
Port number value.
|
| Constructor and Description |
|---|
EntryBlock(java.lang.String hostAddrStr,
int portNumber)
Creates a data-block that holds a host-address string and a
port number value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the given object to this one.
|
boolean |
equals(java.lang.String hostAddr,
int portNum)
Compares the given host-address/port-number to those held by this
object.
|
int |
hashCode()
Returns the hash code value for this object.
|
java.lang.String |
toString()
Returns a string representation of this data-block.
|
public final java.lang.String hostAddrStr
public final int portNumber
public EntryBlock(java.lang.String hostAddrStr,
int portNumber)
hostAddrStr - the host address string to use.portNumber - the port number to use.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare.public boolean equals(java.lang.String hostAddr,
int portNum)
hostAddr - the host address to use.portNum - the port number to use.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object