class TimeSpan implements Comparable<TimeSpan>, Serializable, TimeSpanProvider, SizeProvider {

    public long getMidpoint()
    {
        return (getStart() >> 1) + (getEnd() >> 1) + (getStart() & getEnd() & 1L);
    }

}