Package app.ductape.sdk.database.types
Record Class ConnectionTypes.AdapterConnectionResult
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.ConnectionTypes.AdapterConnectionResult
- Enclosing class:
- ConnectionTypes
-
Constructor Summary
ConstructorsConstructorDescriptionAdapterConnectionResult(boolean connected, String version, Object client, String error) Creates an instance of aAdapterConnectionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.booleanReturns the value of theconnectedrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
AdapterConnectionResult
Creates an instance of aAdapterConnectionResultrecord class.- Parameters:
connected- the value for theconnectedrecord componentversion- the value for theversionrecord componentclient- the value for theclientrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-