A small utility class for representing intervals.