Record Class SubmitResult
java.lang.Object
java.lang.Record
tools.refinery.store.dse.strategy.SubmitResult
public record SubmitResult(boolean include, boolean accepted, ObjectiveValue objective, VersionWithObjectiveValue newVersion)
extends Record
-
Constructor Summary
ConstructorDescriptionSubmitResult
(boolean include, boolean accepted, ObjectiveValue objective, VersionWithObjectiveValue newVersion) Creates an instance of aSubmitResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accepted()
Returns the value of theaccepted
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
include()
Returns the value of theinclude
record component.Returns the value of thenewVersion
record component.Returns the value of theobjective
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SubmitResult
public SubmitResult(boolean include, boolean accepted, ObjectiveValue objective, VersionWithObjectiveValue newVersion) Creates an instance of aSubmitResult
record class.- Parameters:
include
- the value for theinclude
record componentaccepted
- the value for theaccepted
record componentobjective
- the value for theobjective
record componentnewVersion
- the value for thenewVersion
record 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 '=='. -
include
public boolean include()Returns the value of theinclude
record component.- Returns:
- the value of the
include
record component
-
accepted
public boolean accepted()Returns the value of theaccepted
record component.- Returns:
- the value of the
accepted
record component
-
objective
Returns the value of theobjective
record component.- Returns:
- the value of the
objective
record component
-
newVersion
Returns the value of thenewVersion
record component.- Returns:
- the value of the
newVersion
record component
-