gov.usda.gdpc
Class DefaultPhenotypeGroup

java.lang.Object
  extended bygov.usda.gdpc.AbstractGroup
      extended bygov.usda.gdpc.AbstractDBElementGroup
          extended bygov.usda.gdpc.AbstractPhenotypeGroup
              extended bygov.usda.gdpc.DefaultPhenotypeGroup
All Implemented Interfaces:
java.util.Collection, DBElementGroup, Group, java.util.List, PhenotypeGroup

public final class DefaultPhenotypeGroup
extends AbstractPhenotypeGroup

This is the default implementation of a phenotype 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
DefaultPhenotypeGroup()
          DefaultPhenotypeGroup constructor.
DefaultPhenotypeGroup(java.util.List list)
          DefaultPhenotypeGroup constructor.
DefaultPhenotypeGroup(Phenotype[] phenotypes)
          DefaultPhenotypeGroup constructor.
DefaultPhenotypeGroup(PhenotypeGroup[] groups)
          DefaultPhenotypeGroup constructor.
 
Methods inherited from class gov.usda.gdpc.AbstractPhenotypeGroup
getEnvironmentExperimentGroup, getPhenotype, getPhenotypeGroup, getTaxonGroup, getType, numEnvironmentExperiments, 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

DefaultPhenotypeGroup

public DefaultPhenotypeGroup(Phenotype[] phenotypes)
DefaultPhenotypeGroup constructor.

Parameters:
phenotypes - list of phenotypes to be a part of this group.

DefaultPhenotypeGroup

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


DefaultPhenotypeGroup

public DefaultPhenotypeGroup(java.util.List list)
DefaultPhenotypeGroup constructor.

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

DefaultPhenotypeGroup

public DefaultPhenotypeGroup(PhenotypeGroup[] groups)
DefaultPhenotypeGroup constructor.

Parameters:
groups - groups to include in this new group.