/*
 * The Exomiser - A tool to annotate and prioritize genomic variants
 *
 * Copyright (c) 2016-2017 Queen Mary University of London.
 * Copyright (c) 2012-2016 Charité Universitätsmedizin Berlin and Genome Research Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.monarchinitiative.exomiser.core.model;

/**
 * @author Jules Jacobsen <jules.jacobsen@sanger.ac.uk>
 */
public interface ChromosomalRegion {

    int getChromosome();

    int getStart();

    int getEnd();
}

@@ -97,9 +97,9 @@
 -201
-7
+8
  Que
@@ -1040,16 +1040,54 @@
 alRegion
+ extends Comparable%3CChromosomalRegion%3E
  %7B%0A%0A    
@@ -1146,11 +1146,508 @@
 etEnd();
+%0A%0A    @Override%0A    default int compareTo(ChromosomalRegion other) %7B%0A        int chr = this.getChromosome();%0A        int otherChr = other.getChromosome();%0A        if (chr != otherChr) %7B%0A            return Integer.compare(chr, otherChr);%0A        %7D%0A%0A        int start = this.getStart();%0A        int otherStart = other.getStart();%0A        if (start != otherStart) %7B%0A            return Integer.compare(start, otherStart);%0A        %7D%0A%0A        return Integer.compare(this.getEnd(), other.getEnd());%0A    %7D
 %0A%7D%0A

Implement Comparable in ChromosomalRegion