Record Class StopRequestResult
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.StopRequestResult
-
Constructor Summary
ConstructorsConstructorDescriptionStopRequestResult(String scope, String targetId, boolean found, boolean accepted, int affectedRuns, String message) Creates an instance of aStopRequestResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.intReturns the value of theaffectedRunsrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()Returns the value of thefoundrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.scope()Returns the value of thescoperecord component.targetId()Returns the value of thetargetIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StopRequestResult
public StopRequestResult(String scope, String targetId, boolean found, boolean accepted, int affectedRuns, String message) Creates an instance of aStopRequestResultrecord class.- Parameters:
scope- the value for thescoperecord componenttargetId- the value for thetargetIdrecord componentfound- the value for thefoundrecord componentaccepted- the value for theacceptedrecord componentaffectedRuns- the value for theaffectedRunsrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
targetId
Returns the value of thetargetIdrecord component.- Returns:
- the value of the
targetIdrecord component
-
found
public boolean found()Returns the value of thefoundrecord component.- Returns:
- the value of the
foundrecord component
-
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
affectedRuns
public int affectedRuns()Returns the value of theaffectedRunsrecord component.- Returns:
- the value of the
affectedRunsrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-