verinec.netsim.util.tables
Class SocketSimProccessTable.Key
java.lang.Object
verinec.netsim.util.tables.SocketSimProccessTable.Key
- All Implemented Interfaces:
- Comparable
- Enclosing class:
- SocketSimProccessTable
protected class SocketSimProccessTable.Key
- extends Object
- implements Comparable
The key of this Map containing the localhost and destination host address and destination port.
localhost
private IAddress localhost
dsthost
private IAddress dsthost
dstport
private int dstport
SocketSimProccessTable.Key
public SocketSimProccessTable.Key(IAddress localhost,
IAddress dsthost,
int dstport)
- creates a new key
- Parameters:
localhost - the address of the localhostdsthost - the address of the destinationdstport - the destination port of the socket
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable
- See Also:
Comparable.compareTo(java.lang.Object)
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
getPort
public int getPort()
- gets the destination port
- Returns:
- the destination port