Package app.ductape.sdk.graph.types
Record Class GraphTypes.GraphConnectionContext
java.lang.Object
java.lang.Record
app.ductape.sdk.graph.types.GraphTypes.GraphConnectionContext
- Enclosing class:
- GraphTypes
-
Constructor Summary
ConstructorsConstructorDescriptionGraphConnectionContext(String graph, String env, GraphTypes.GraphType type, String connectionUrl, boolean connected, String product, String name, String description, String database, String graphName, String username, String password) Creates an instance of aGraphConnectionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconnectedrecord component.Returns the value of theconnectionUrlrecord component.database()Returns the value of thedatabaserecord component.Returns the value of thedescriptionrecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.graph()Returns the value of thegraphrecord component.Returns the value of thegraphNamerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.password()Returns the value of thepasswordrecord component.product()Returns the value of theproductrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
GraphConnectionContext
public GraphConnectionContext(String graph, String env, GraphTypes.GraphType type, String connectionUrl, boolean connected, String product, String name, String description, String database, String graphName, String username, String password) Creates an instance of aGraphConnectionContextrecord class.- Parameters:
graph- the value for thegraphrecord componentenv- the value for theenvrecord componenttype- the value for thetyperecord componentconnectionUrl- the value for theconnectionUrlrecord componentconnected- the value for theconnectedrecord componentproduct- the value for theproductrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentdatabase- the value for thedatabaserecord componentgraphName- the value for thegraphNamerecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord 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 '=='. -
graph
Returns the value of thegraphrecord component.- Returns:
- the value of the
graphrecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
connectionUrl
Returns the value of theconnectionUrlrecord component.- Returns:
- the value of the
connectionUrlrecord component
-
connected
public boolean connected()Returns the value of theconnectedrecord component.- Returns:
- the value of the
connectedrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-
graphName
Returns the value of thegraphNamerecord component.- Returns:
- the value of the
graphNamerecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-