Package io.jenetics.xml
Class Readers.LongChromosome
- java.lang.Object
-
- io.jenetics.xml.Readers.LongChromosome
-
- Enclosing class:
- Readers
public static final class Readers.LongChromosome extends Object
Reader methods forLongChromosome
objects.XML format
<long-chromosome length="3"> <min>-9223372036854775808</min> <max>9223372036854775807</max> <alleles> <allele>-1345217698116542402</allele> <allele>-7144755673073475303</allele> <allele>6053786736809578435</allele> </alleles> </long-chromosome>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Reader<Long>
alleleReader()
Return the default allele reader for theLongChromosome
.static LongChromosome
read(InputStream in)
Read a newLongChromosome
from the given input stream.static Reader<LongChromosome>
reader()
Return aLongChromosome
reader.
-
-
-
Method Detail
-
alleleReader
public static Reader<Long> alleleReader()
Return the default allele reader for theLongChromosome
.- Returns:
- the default allele reader
-
reader
public static Reader<LongChromosome> reader()
Return aLongChromosome
reader.- Returns:
- a long chromosome reader
-
read
public static LongChromosome read(InputStream in) throws XMLStreamException
Read a newLongChromosome
from the given input stream.- Parameters:
in
- the data source of the chromosome- Returns:
- a new chromosome
- Throws:
XMLStreamException
- if reading the chromosome failsNullPointerException
- if the given input stream isnull
-
-