Record Class StopRequestResult

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.StopRequestResult

public record StopRequestResult(String scope, String targetId, boolean found, boolean accepted, int affectedRuns, String message) extends Record
Result of requesting cooperative stop for one run or experiment.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StopRequestResult(String scope, String targetId, boolean found, boolean accepted, int affectedRuns, String message)
    Creates an instance of a StopRequestResult record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the accepted record component.
    int
    Returns the value of the affectedRuns record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the found record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the message record component.
    Returns the value of the scope record component.
    Returns the value of the targetId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StopRequestResult

      public StopRequestResult(String scope, String targetId, boolean found, boolean accepted, int affectedRuns, String message)
      Creates an instance of a StopRequestResult record class.
      Parameters:
      scope - the value for the scope record component
      targetId - the value for the targetId record component
      found - the value for the found record component
      accepted - the value for the accepted record component
      affectedRuns - the value for the affectedRuns record component
      message - the value for the message record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • scope

      public String scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • targetId

      public String targetId()
      Returns the value of the targetId record component.
      Returns:
      the value of the targetId record component
    • found

      public boolean found()
      Returns the value of the found record component.
      Returns:
      the value of the found record component
    • accepted

      public boolean accepted()
      Returns the value of the accepted record component.
      Returns:
      the value of the accepted record component
    • affectedRuns

      public int affectedRuns()
      Returns the value of the affectedRuns record component.
      Returns:
      the value of the affectedRuns record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component