Use generics for Chromosome type, begin unifying code

This commit is contained in:
mezz committed 2016-02-27 00:14:22 -08:00
1 parent a8270ef365
commit 43e41034f6
217 files changed
+3148 -2417

No files matched your search

@@ -5,6 +5,8 @@
******************************************************************************/
package forestry.api.genetics;
import java.util.Collection;
/**
* Biological classifications from domain down to genus.
*
@@ -74,7 +76,7 @@ public interface IClassification {
/**
* @return Member groups of this one.
*/
IClassification[] getMemberGroups();
Collection<IClassification> getMemberGroups();
/**
* Adds subgroups to this group.
@@ -84,14 +86,14 @@ public interface IClassification {
/**
* @return Member species of this group.
*/
IAlleleSpecies[] getMemberSpecies();
Collection<IAlleleSpecies<?>> getMemberSpecies();
/**
* Used by the allele registry to populate internal collection of branch members on the fly.
*
* @param species
*/
void addMemberSpecies(IAlleleSpecies species);
void addMemberSpecies(IAlleleSpecies<?> species);
/**
* @return Parent classification, null if this is root.