AndroidAPS/app/src/main/java/info/nightscout/androidaps/interfaces/Interval.java
2018-01-21 13:37:38 +01:00

26 lines
480 B
Java

package info.nightscout.androidaps.interfaces;
/**
* Created by mike on 21.05.2017.
*/
public interface Interval {
long durationInMsec();
long start();
// planned end time at time of creation
long originalEnd();
// end time after cut
long end();
void cutEndTo(long end);
boolean match(long time);
boolean before(long time);
boolean after(long time);
boolean isInProgress();
boolean isEndingEvent();
boolean isValid();
}