public final class MutatorResult<T> extends Object implements Serializable
Mutator.mutate
calls.Mutator.mutate(Phenotype, long, double, Random)
,
Mutator.mutate(Genotype, double, Random)
,
Mutator.mutate(Chromosome, double, Random)
,
Mutator.mutate(Gene, Random)
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getMutations()
Return the number of mutations for this mutation result.
|
T |
getResult()
Return the mutation result.
|
int |
hashCode() |
static <T> MutatorResult<T> |
of(T result)
Create a new mutation result with the given result.
|
static <T> MutatorResult<T> |
of(T result,
int mutations)
Create a new mutation result with the given values.
|
String |
toString() |
public int getMutations()
public static <T> MutatorResult<T> of(T result, int mutations)
T
- the mutation result typeresult
- the mutation resultmutations
- the number of mutationsIllegalArgumentException
- if the given mutations
is
negativeNullPointerException
- if the given mutation result is null
public static <T> MutatorResult<T> of(T result)
T
- the mutation result typeresult
- the mutation resultNullPointerException
- if the given mutation result is null
© 2007-2017 Franz Wilhelmstötter (2017-11-16 19:35)