Class Writers.BitChromosome

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

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

Writer code

final BitChromosome value = BitChromosome.of(20, 0.5); try (AutoCloseableXMLStreamWriter xml = XML.writer(System.out, " ")) { Writers.BitChromosome.writer().write(value, xml); }
XML output
 
 <bit-chromosome length="20" ones-probability="0.5">11100011101011001010</bit-chromosome>
 
Since:
3.9
Version:
3.9