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
ConstructorsConstructorDescriptionSubmitResult(boolean include, boolean accepted, ObjectiveValue objective, VersionWithObjectiveValue newVersion) Creates an instance of aSubmitResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepted()Returns the value of theacceptedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleaninclude()Returns the value of theincluderecord component.Returns the value of thenewVersionrecord component.Returns the value of theobjectiverecord component.final StringtoString()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 aSubmitResultrecord class.- Parameters:
include- the value for theincluderecord componentaccepted- the value for theacceptedrecord componentobjective- the value for theobjectiverecord componentnewVersion- the value for thenewVersionrecord 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. -
include
public boolean include()Returns the value of theincluderecord component.- Returns:
- the value of the
includerecord component
-
accepted
public boolean accepted()Returns the value of theacceptedrecord component.- Returns:
- the value of the
acceptedrecord component
-
objective
Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-
newVersion
Returns the value of thenewVersionrecord component.- Returns:
- the value of the
newVersionrecord component
-