public class TestConnectionResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private Connection |
connection
The connection tested.
|
Constructor and Description |
---|
TestConnectionResult() |
Modifier and Type | Method and Description |
---|---|
TestConnectionResult |
clone() |
boolean |
equals(java.lang.Object obj) |
Connection |
getConnection()
The connection tested.
|
int |
hashCode() |
void |
setConnection(Connection connection)
The connection tested.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestConnectionResult |
withConnection(Connection connection)
The connection tested.
|
private Connection connection
The connection tested.
public void setConnection(Connection connection)
The connection tested.
connection
- The connection tested.public Connection getConnection()
The connection tested.
public TestConnectionResult withConnection(Connection connection)
The connection tested.
connection
- The connection tested.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TestConnectionResult clone()
clone
in class java.lang.Object