public static class Taxon.Builder
A builder for creating immutable Taxon instances.
Example:
Taxon cp= new Taxon.Builder("Z001E0001:Line:mays:Zea")
.inbreedF(0.99)
.parents("B73","B97")
.pedigree("(B73xB97)S6I1")
.addAnno("Group","Dent")
.build(); This would create an Taxon.
public Builder(Taxon aTaxon)
Constructor for Builder, requires a Taxon object
aTaxon - taxon objectpublic Builder(java.lang.String aTaxonName)
Constructor for Builder, requires a Taxon name
aTaxonName - name of the taxonpublic net.maizegenetics.taxa.Taxon.Builder addAnno(java.lang.String key,
java.lang.String value)
Add non-standard annotation
public net.maizegenetics.taxa.Taxon.Builder addAnno(java.lang.String key,
java.lang.Number value)
Add non-standard annotation
public net.maizegenetics.taxa.Taxon.Builder name(java.lang.String newName)
Set sex: 0=both, 1=female, 2=male (default=0 Both)
public net.maizegenetics.taxa.Taxon.Builder sex(byte val)
Set sex: 0=both, 1=female, 2=male (default=0 Both)
public net.maizegenetics.taxa.Taxon.Builder inbreedF(float val)
Set inbreeding coefficient (default=Float.NaN)
public net.maizegenetics.taxa.Taxon.Builder parents(java.lang.String mom,
java.lang.String dad)
Set text definition of parents (default=null)
public net.maizegenetics.taxa.Taxon.Builder pedigree(java.lang.String val)
Set text definition of pedigree (default=null)
public net.maizegenetics.taxa.Taxon.Builder synonym(java.lang.String val)
Set text definition of pedigree (default=null)
public Taxon build()