AndroidAPS/app/src/main/java/info/nightscout/androidaps/interfaces/Interval.java

26 lines
480 B
Java
Raw Normal View History

2017-05-21 22:05:03 +02:00
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);
2017-05-23 20:15:14 +02:00
boolean isInProgress();
boolean isEndingEvent();
2018-01-21 13:37:38 +01:00
boolean isValid();
2017-05-21 22:05:03 +02:00
}