Creates a {@link RubyRange} by given strings.

@param start
of the range
@param end
of the range
@return {@link RubyRange}
176817
public static RubyRange<String> range(String start, String end) {
    return new RubyRange<>(StringSuccessor.getInstance(), start, end,
        Interval.CLOSED);
  }
351220
public Expression<Short> between(Short startValue, Short endValue) {
		String valueString = "'" + startValue + "' AND '" + endValue + "'";
		return new Expression<Short>(this, Operation.between, valueString);
	}
463400
final public void addPositionRange(int start, int end) {
    if (tokenPosition == null) {
      tokenPosition = new MtasPosition(start, end);
    } else {
      int[] positions = new int[end - start + 1];
      for (int i = start; i <= end; i++) {
        positions[i - start] = i;
      }
      tokenPosition.add(positions);
    }
  }
646088
public SearchParams between(final Date start, final Date end) {
        return this.creationGte(start).creationLte(end);
    }
234124
public void setRange(int start, int end) {
    if (end < start || start < 0 || end > size) {
      throw new IllegalArgumentException();
    }
    if (end == start) {
      return;
    }
    end--; // will be easier to treat this as the last actually set bit -- inclusive
    int firstInt = start / 32;
    int lastInt = end / 32;
    for (int i = firstInt; i <= lastInt; i++) {
      int firstBit = i > firstInt ? 0 : start & 0x1F;
      int lastBit = i < lastInt ? 31 : end & 0x1F;
      // Ones from firstBit to lastBit, inclusive
      int mask = (2 << lastBit) - (1 << firstBit);
      bits[i] |= mask;
    }
  }
1050226
public List<?> range(Value begin, Value end) {
		List<Object> results = new ArrayList<Object>();
		Key[] elementKeys = getElementKeys();
		if (elementKeys != null && elementKeys.length > 0) {
			List<Record> records = fetchSubRecords(elementKeys);
			for (Record record : records) {
				if (record != null && filterBinByRange(record, ListElementBinName, begin, end)) {
					results.add(record.getValue(ListElementBinName));
				}
			}
		}
		return results;
	}
1258598
public List<String> range(int start,int end){
        try {    		
        	return new ArrayList<>(getJedisCommands(groupName).zrange(key, start, end));
    	} finally{
			getJedisProvider(groupName).release();
		}
	}
443347
public static List<Long> ends(final Iterable<Range<Long>> ranges) {
        List<Long> ends = new ArrayList<Long>();
        for (Range<Long> range : ranges) {
            checkClosedOpen(range);
            ends.add(range.upperEndpoint());
        }
        return ends;
    }
604456
public static RubyRange<Date> range(Date start, Date end) {
    return new RubyRange<>(DateSuccessor.getInstance(), start, end,
        Interval.CLOSED);
  }
371676
protected function buildRangeObject($start, $end)
    {
        return new TimeRange(
                TimeOfDay::fromNative($start),
                TimeOfDay::fromNative($end)
        );
    }
1261886
public long addRange(long start, long end) {
        Range<Long> newRange = range(start, end);
        long nonOverlapSize = end - start + 1;
        if (m_map.intersects(newRange)) {
             for (Range<Long> next : m_map.asRanges()) {
                 if (next.isConnected(newRange)) {
                     Range<Long> intersection = next.intersection(newRange);
                     nonOverlapSize -= end(intersection) - start(intersection) + 1;
                 }
             }
        }
        m_map.add(newRange);
        return nonOverlapSize;
    }
836247
public static List<Integer> genIntegers(final int start, final int end) {
        final List<Integer> ret = new ArrayList<Integer>();

        for (int i = 0; i <= end; i++) {
            ret.add(i + start);
        }

        return ret;
    }
1360260
public static KeyRange openClosed(Key start, Key end) {
    return new KeyRange(checkNotNull(start), Endpoint.OPEN, checkNotNull(end), Endpoint.CLOSED);
  }
477212
function range(start, end) {
  return {
    start: start,
    end: end === undefined ? start : end
  };
}
1014356
public static byte[] sub(byte[] array, int start, int end) {
		int length = length(array);
		if (start < 0) {
			start += length;
		}
		if (end < 0) {
			end += length;
		}
		if (start == length) {
			return new byte[0];
		}
		if (start > end) {
			int tmp = start;
			start = end;
			end = tmp;
		}
		if (end > length) {
			if (start >= length) {
				return new byte[0];
			}
			end = length;
		}
		return Arrays.copyOfRange(array, start, end);
	}
963759
public static <T> KeyRange<T> atLeast(final T start) {
    return new KeyRange<>(KeyRangeType.FORWARD_AT_LEAST, start, null);
  }
404043
public Matcher matcher(char[] data, int start, int end) {
        Matcher m = new Matcher(this);
        m.setTarget(data, start, end);
        return m;
    }