Package app.ductape.sdk.graph.types
Record Class GraphTypes.GraphTransactionResult<T>
java.lang.Object
java.lang.Record
app.ductape.sdk.graph.types.GraphTypes.GraphTransactionResult<T>
- Enclosing class:
- GraphTypes
-
Constructor Summary
ConstructorsConstructorDescriptionGraphTransactionResult(T result, boolean committed, Long executionTime) Creates an instance of aGraphTransactionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecommittedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraphTransactionResult
Creates an instance of aGraphTransactionResultrecord class.- Parameters:
result- the value for theresultrecord componentcommitted- the value for thecommittedrecord componentexecutionTime- the value for theexecutionTimerecord 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 '=='. -
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
committed
public boolean committed()Returns the value of thecommittedrecord component.- Returns:
- the value of the
committedrecord component
-
executionTime
Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-