Class Writers.CharacterChromosome

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

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

Writer code

final CharacterChromosome value = CharacterChromosome.of("ASDF", CharSeq.of("A-Z"));
try (AutoCloseableXMLStreamWriter xml = XML.writer(System.out, "    ")) {
    Writers.CharacterChromosome.writer().write(value, xml);
}
XML output
 
 <character-chromosome length="4">
     <valid-alleles>ABCDEFGHIJKLMNOPQRSTUVWXYZ<valid-alleles>
     <alleles>ASDF</alleles>
 </character-chromosome>