net.intelie.pipes.time.TimeSpan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pipes-api Show documentation
Show all versions of pipes-api Show documentation
Intelie Pipes' API classes and interfaces
package net.intelie.pipes.time;
import net.intelie.pipes.PipeException;
import net.intelie.pipes.util.AutomatonRepr;
import java.io.Serializable;
import java.time.ZoneId;
import java.util.List;
import java.util.TimeZone;
public interface TimeSpan extends Serializable {
static TimeSpan parse(String span) throws PipeException {
return new TimeSpanParser().parse(span);
}
static TimeSpan parse(String span, ZoneId zone) throws PipeException {
return new TimeSpanParser().parse(span, zone);
}
long start(long reference);
long end(long reference);
boolean isFixed();
boolean isPoint();
boolean includesPresent();
SpanMetadata metadata();
List children();
SpanAnnotations annotations();
TimeSpan forceZone(ZoneId zone);
AutomatonRepr repr(long timestamp, String zone);
}