public class ReadmailHost extends Object implements Serializable
Constructor and Description |
---|
ReadmailHost() |
ReadmailHost(String host,
Long port) |
Modifier and Type | Method and Description |
---|---|
void |
deletePort() |
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
String |
getHost()
Returns the value of field 'host'.
|
Long |
getPort()
Returns the value of field 'port'.
|
ReadmailProtocol |
getReadmailProtocol()
Returns the value of field 'readmailProtocol'.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
boolean |
hasPort()
Method hasPort.
|
void |
setHost(String host)
Sets the value of field 'host'.
|
void |
setPort(Long port)
Sets the value of field 'port'.
|
void |
setReadmailProtocol(ReadmailProtocol readmailProtocol)
Sets the value of field 'readmailProtocol'.
|
public void deletePort()
public boolean equals(Object obj)
public String getHost()
public Long getPort()
public ReadmailProtocol getReadmailProtocol()
public boolean hasPort()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public void setHost(String host)
host
- the value of field 'host'.public void setPort(Long port)
port
- the value of field 'port'.public void setReadmailProtocol(ReadmailProtocol readmailProtocol)
readmailProtocol
- the value of field 'readmailProtocol'Copyright © 2017. All rights reserved.