class RangeLongBlock implements Comparable<RangeLongBlock>, Iterable<Long> {

    public static boolean isContiguous(long[] values)
    {
        if (values.length == 1)
        {
            return true;
        }

        boolean contiguous = true;
        for (int i = 1; i < values.length && contiguous; i++)
        {
            if (values[i - 1] != values[i] && values[i - 1] != values[i] - 1)
            {
                contiguous = false;
                break;
            }
        }
        return contiguous;
    }

    public  RangeLongBlock(long value);
    public  RangeLongBlock(long startValue, long endValue);
    public  RangeLongBlock(RangeLongBlock other);

}