private Variant(String chromosome, int start, @Nullable Integer end, String reference, String alternate, String strand) { this(); // Nullable end. The builder will infer the end (and length) if null. new VariantBuilder(chromosome, start, end, reference, alternate).setStrand(strand).build(this); }
public Variant(String chromosome, int start, int end, String reference, String alternate, String strand) { this(); new VariantBuilder(chromosome, start, end, reference, alternate).setStrand(strand).build(this); }