Package app.ductape.sdk.graph.types
Record Class GraphTypes.GraphConnectionResult
java.lang.Object
java.lang.Record
app.ductape.sdk.graph.types.GraphTypes.GraphConnectionResult
- Enclosing class:
- GraphTypes
-
Constructor Summary
ConstructorsConstructorDescriptionGraphConnectionResult(boolean connected, String type, String version, Long latency, String error) Creates an instance of aGraphConnectionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.latency()Returns the value of thelatencyrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
GraphConnectionResult
public GraphConnectionResult(boolean connected, String type, String version, Long latency, String error) Creates an instance of aGraphConnectionResultrecord class.- Parameters:
connected- the value for theconnectedrecord componenttype- the value for thetyperecord componentversion- the value for theversionrecord componentlatency- the value for thelatencyrecord 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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
latency
Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-