Package org.jenetics.util

Examples of org.jenetics.util.Function.apply()


      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
Copyright © 2018 www.massapi.com. 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.