Class Writers.LongChromosome

java.lang.Object
io.jenetics.xml.Writers.LongChromosome
Enclosing class:
Writers

public static final class Writers.LongChromosome extends Object
This class contains static writer methods for LongChromosome objects.

Writer code

final LongChromosome value = LongChromosome .of(Long.MIN_VALUE, Long.MAX_VALUE, 3); try (AutoCloseableXMLStreamWriter xml = XML.writer(System.out, " ")) { Writers.LongChromosome.writer().write(value, xml); }
XML output
 
 <long-chromosome length="3">
     <min>-9223372036854775808</min>
     <max>9223372036854775807</max>
     <alleles>
         <allele>-1345217698116542402</allele>
         <allele>-7144755673073475303</allele>
         <allele>6053786736809578435</allele>
     </alleles>
 </long-chromosome>