Package org.jenetics.util

Examples of org.jenetics.util.Function


    public static final class Adapter
      extends XmlAdapter<Model, EnumGene>
    {
      @Override
      public Model marshal(final EnumGene gene) {
        final Function marshaller = jaxb.Marshaller(gene.getAllele());
        final Model m = new Model();
        m.length = gene.getValidAlleles().length();
        m.allele.index = gene.getAlleleIndex();
        m.allele.value = marshaller.apply(gene.getAllele());
        m.alleles = gene.getValidAlleles()
          .map(marshaller)
          .asList();

        return m;
View Full Code Here

TOP

Related Classes of org.jenetics.util.Function

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.