gov.usda.gdpc
Class DefaultGenotypeGroup

java.lang.Object
  extended bygov.usda.gdpc.AbstractGroup
      extended bygov.usda.gdpc.AbstractDBElementGroup
          extended bygov.usda.gdpc.AbstractGenotypeGroup
              extended bygov.usda.gdpc.DefaultGenotypeGroup
All Implemented Interfaces:
java.util.Collection, DBElementGroup, GenotypeGroup, Group, java.util.List

public final class DefaultGenotypeGroup
extends AbstractGenotypeGroup

This is the default implementation of a genotype group. Most of the function comes from the abstract class that is extends.

Author:
terryc

Field Summary
 
Fields inherited from class gov.usda.gdpc.AbstractDBElementGroup
myIndex
 
Constructor Summary
DefaultGenotypeGroup()
          DefaultGenotypeGroup constructor.
 
Method Summary
static DefaultGenotypeGroup getInstance(Genotype[] genotypes)
          Factory method to create instances of DefaultGenotypeGroup.
static DefaultGenotypeGroup getInstance(GenotypeExperimentGroup experimentGroup, TaxonGroup taxonGroup, java.lang.Object[][] data)
          DefaultGenotypeGroup constructor.
static DefaultGenotypeGroup getInstance(GenotypeGroup[] groups)
          Factory method to create instances of DefaultGenotypeGroup.
static DefaultGenotypeGroup getInstance(java.util.List list)
          Factory method to create instances of DefaultGenotypeGroup.
 
Methods inherited from class gov.usda.gdpc.AbstractGenotypeGroup
getGenotype, getGenotypeExperimentGroup, getGenotypeGroup, getTaxonGroup, getType, numGenotypeExperiments, numTaxa
 
Methods inherited from class gov.usda.gdpc.AbstractDBElementGroup
getDBElementGroup, getDBElements, getDefinedProperties, getDistinctProperties, index, toString
 
Methods inherited from class gov.usda.gdpc.AbstractGroup
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.usda.gdpc.DBElementGroup
getDBElements, getDefinedProperties, getDistinctProperties, index
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

DefaultGenotypeGroup

public DefaultGenotypeGroup()
DefaultGenotypeGroup constructor. Creates an empty group.

Method Detail

getInstance

public static DefaultGenotypeGroup getInstance(Genotype[] genotypes)
Factory method to create instances of DefaultGenotypeGroup.

Parameters:
genotypes - list of genotypes to be a part of this group.
Returns:
default genotype group

getInstance

public static DefaultGenotypeGroup getInstance(java.util.List list)
Factory method to create instances of DefaultGenotypeGroup.

Parameters:
list - list of objects to be a part of this group. Any null in the list will be discarded.
Returns:
default genotype group

getInstance

public static DefaultGenotypeGroup getInstance(GenotypeGroup[] groups)
Factory method to create instances of DefaultGenotypeGroup.

Parameters:
groups - groups to include in this new group.
Returns:
default genotype group

getInstance

public static DefaultGenotypeGroup getInstance(GenotypeExperimentGroup experimentGroup,
                                               TaxonGroup taxonGroup,
                                               java.lang.Object[][] data)
DefaultGenotypeGroup constructor.