LongRangeSet (long[] ranges, int bound) { if (bound == 0) { return Empty.EMPTY; } else if (bound == 2) { return range(ranges[0], ranges[1]); } else { return new RangeSet(Arrays.copyOf(ranges, bound)); } }