private boolean listContainsFeature(List<Feature> featureList, Feature feature) { for (Feature listFeature : featureList) { if ((feature.getChr().equals(listFeature.getChr())) && (feature.getStart() == listFeature.getStart()) && (feature.getEnd() == listFeature.getEnd())) { return true; } } return false; }