From d94c9d22beaaba8e53d97a88704d2bc1514d2786 Mon Sep 17 00:00:00 2001 From: rickymagner <81349869+rickymagner@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:41:47 -0400 Subject: [PATCH] Change name of interface from IntervalFileFeature to NamedFeature --- src/main/java/htsjdk/samtools/util/Interval.java | 4 ++-- .../tribble/{IntervalFileFeature.java => NamedFeature.java} | 2 +- src/main/java/htsjdk/tribble/bed/BEDFeature.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/htsjdk/tribble/{IntervalFileFeature.java => NamedFeature.java} (96%) diff --git a/src/main/java/htsjdk/samtools/util/Interval.java b/src/main/java/htsjdk/samtools/util/Interval.java index f96e70e3f1..07007a48e6 100644 --- a/src/main/java/htsjdk/samtools/util/Interval.java +++ b/src/main/java/htsjdk/samtools/util/Interval.java @@ -24,7 +24,7 @@ package htsjdk.samtools.util; import htsjdk.samtools.SAMException; -import htsjdk.tribble.IntervalFileFeature; +import htsjdk.tribble.NamedFeature; import htsjdk.tribble.annotation.Strand; import java.util.Collection; @@ -34,7 +34,7 @@ * * @author Tim Fennell */ -public class Interval implements Comparable, Cloneable, IntervalFileFeature { +public class Interval implements Comparable, Cloneable, NamedFeature { private final boolean negativeStrand; private final String name; private final String contig; diff --git a/src/main/java/htsjdk/tribble/IntervalFileFeature.java b/src/main/java/htsjdk/tribble/NamedFeature.java similarity index 96% rename from src/main/java/htsjdk/tribble/IntervalFileFeature.java rename to src/main/java/htsjdk/tribble/NamedFeature.java index a22689c325..5f0dcb4a6e 100644 --- a/src/main/java/htsjdk/tribble/IntervalFileFeature.java +++ b/src/main/java/htsjdk/tribble/NamedFeature.java @@ -28,6 +28,6 @@ * An interface for features provided via an interval file, e.g. bed or interval_list. * Provides a common interface for accessing the name column for both of these file types. */ -public interface IntervalFileFeature extends Feature { +public interface NamedFeature extends Feature { String getName(); } diff --git a/src/main/java/htsjdk/tribble/bed/BEDFeature.java b/src/main/java/htsjdk/tribble/bed/BEDFeature.java index 310e2693dd..a342b65317 100644 --- a/src/main/java/htsjdk/tribble/bed/BEDFeature.java +++ b/src/main/java/htsjdk/tribble/bed/BEDFeature.java @@ -23,7 +23,7 @@ */ package htsjdk.tribble.bed; -import htsjdk.tribble.IntervalFileFeature; +import htsjdk.tribble.NamedFeature; import htsjdk.tribble.annotation.Strand; import java.awt.*; @@ -36,7 +36,7 @@ * This is different than the 0-based representation in a BED file. This conversion is handled by {@link BEDCodec}. * Anyone writing a bed file should be aware of this difference. */ -public interface BEDFeature extends IntervalFileFeature { +public interface BEDFeature extends NamedFeature { Strand getStrand(); String getType();