Commit 8f79fd67 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Merge branch 'release/0.7.0'

parents 1c8f60d6 632f53b4
......@@ -3,7 +3,7 @@
<groupId>de.cebitec.common</groupId>
<artifactId>intervals</artifactId>
<version>0.7.0-SNAPSHOT</version>
<version>0.7.0</version>
<packaging>bundle</packaging>
<name>Intervals library</name>
......
......@@ -21,6 +21,7 @@ import static de.cebitec.common.sequencetools.intervals.Intervals.operations;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
/**
*
......@@ -30,12 +31,12 @@ public class IntegerIntervalOperations implements IntervalOperations<Integer> {
@Override
public boolean beginsWith(Interval<Integer> fst, Interval<Integer> snd) {
return fst.as(Interval.Type.ZeroOpen).getStart() == snd.as(Interval.Type.ZeroOpen).getStart();
return Objects.equals(fst.as(Interval.Type.ZeroOpen).getStart(), snd.as(Interval.Type.ZeroOpen).getStart());
}
@Override
public boolean endsWith(Interval<Integer> fst, Interval<Integer> snd) {
return fst.as(Interval.Type.ZeroOpen).getEnd() == snd.as(Interval.Type.ZeroOpen).getEnd();
return Objects.equals(fst.as(Interval.Type.ZeroOpen).getEnd(), snd.as(Interval.Type.ZeroOpen).getEnd());
}
@Override
......
......@@ -18,6 +18,7 @@ package de.cebitec.common.sequencetools.intervals;
/**
*
* @param <T> The number type the interval uses.
* @author Lukas Jelonek {@literal <ljelonek at cebitec.uni-bielefeld.de>}
*/
public interface IntervalFormatter<T extends Number> {
......
......@@ -198,4 +198,7 @@ public class Intervals {
return o1.getStart().compareTo(o2.getStart());
}
}
private Intervals() {
}
}
......@@ -28,6 +28,9 @@ import java.util.List;
*/
public class IntervalCaches {
private IntervalCaches() {
}
/**
* Only For debugging and testing purposes.
*/
......
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