Record Class MutatorResult<T>
java.lang.Object
java.lang.Record
io.jenetics.MutatorResult<T>
- Type Parameters:
T- the mutation result type- Record Components:
result- the mutation resultmutations- the number of mutations applied while creating the mutation result
- All Implemented Interfaces:
Serializable
Represents the result pair of one of the four
Mutator.mutate calls.- Since:
- 4.0
- Version:
- 7.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMutatorResult(T result, int mutations) Create a new mutation result with the given values. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themutationsrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MutatorResult
Create a new mutation result with the given values.- Parameters:
result- the mutation resultmutations- the number of mutations- Throws:
IllegalArgumentException- if the givenmutationsis negativeNullPointerException- if the given mutation result isnull
-
-
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. -
result
-
mutations
-