Commit 3401b196 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fixed wrong types in intervaloperations

parent 0b735b09
......@@ -110,7 +110,7 @@ public interface IntervalOperations<L extends Number> {
* @param snd
* @return
*/
boolean beginsWith(Interval<Integer> fst, Interval<Integer> snd);
boolean beginsWith(Interval<L> fst, Interval<L> snd);
/**
* Checks if the fst interval completely contains the snd interval.
......@@ -119,7 +119,7 @@ public interface IntervalOperations<L extends Number> {
* @param snd
* @return
*/
boolean contains(Interval<Integer> fst, Interval<Integer> snd);
boolean contains(Interval<L> fst, Interval<L> snd);
/**
* Checks if the fst interval ends at the same position as the snd interval.
......@@ -128,7 +128,7 @@ public interface IntervalOperations<L extends Number> {
* @param snd
* @return
*/
boolean endsWith(Interval<Integer> fst, Interval<Integer> snd);
boolean endsWith(Interval<L> fst, Interval<L> snd);
/**
* Checks if the fst interval does not overlap with the snd interval and is left of it.
......@@ -137,7 +137,7 @@ public interface IntervalOperations<L extends Number> {
* @param snd
* @return
*/
boolean leftOf(Interval<Integer> fst, Interval<Integer> snd);
boolean leftOf(Interval<L> fst, Interval<L> snd);
/**
* Checks if the fst interval does not overlap with the snd interval and is right of it
......@@ -146,6 +146,6 @@ public interface IntervalOperations<L extends Number> {
* @param snd
* @return
*/
boolean rightOf(Interval<Integer> fst, Interval<Integer> snd);
boolean rightOf(Interval<L> fst, Interval<L> snd);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment