net.maizegenetics.dna.map.GenomicFeatureList.kt Maven / Gradle / Ivy
package net.maizegenetics.dna.map
import com.google.common.collect.ImmutableList
/**
* @author Terry Casstevens
* Created November 07, 2018
*
* This is a list of genomic factors paired with it's weight
*/
class GenomicFeatureList private constructor(private val factors: ImmutableList) : List by factors {
// TODO("Sort")
// TODO("Validate Order")
class Builder {
val builder = ImmutableList.builder()
fun add(factor: GenomicFeature) {
builder.add(factor)
}
fun addAll(factors: List) {
factors.forEach { add(it) }
}
fun build(): GenomicFeatureList {
return GenomicFeatureList(builder.build())
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy