public class Process extends Object
Modifier and Type | Field and Description |
---|---|
private String |
hostname |
private Integer |
port |
Constructor and Description |
---|
Process(String hostname,
Integer port) |
Process(String hostname,
String portStr)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHostname() |
Integer |
getPort() |
int |
hashCode() |
String |
toString() |
public Process(String hostname, String portStr) throws NumberFormatException
String
and performs the
cast to Integer
as part of the constructionhostname
- The hostname of the processportStr
- The port of the process as a String
NumberFormatException
- If the parse to Integer
failsCopyright © 2017. All rights reserved.