public final class AltererResult<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Serializable
Alterer.alter(Seq, long) call, which
consists of the altered population and the number of altered individuals.Alterer,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAlterations()
Return the number of altered individuals.
|
ISeq<Phenotype<G,C>> |
getPopulation()
Return the altered population.
|
int |
hashCode() |
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
of(ISeq<Phenotype<G,C>> population)
Return a new alter result for the given arguments.
|
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
of(ISeq<Phenotype<G,C>> population,
int alterations)
Return a new alter result for the given arguments.
|
String |
toString() |
public ISeq<Phenotype<G,C>> getPopulation()
public int getAlterations()
public static <G extends Gene<?,G>,C extends Comparable<? super C>> AltererResult<G,C> of(ISeq<Phenotype<G,C>> population, int alterations)
G - the gene typeC - the result typepopulation - the altered populationalterations - the number of altered individualsNullPointerException - if the given population is nullIllegalArgumentException - if the given alterations is
negativepublic static <G extends Gene<?,G>,C extends Comparable<? super C>> AltererResult<G,C> of(ISeq<Phenotype<G,C>> population)
G - the gene typeC - the result typepopulation - the altered populationNullPointerException - if the given population is null© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)