Lines Matching defs:value
83 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
85 * @param value the value to search for
86 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise,
87 * the return value is {@code (-1-index)} for the {@code index} of the range that is
88 * immediately following {@code value}.
91 int binarySearchDistinctRanges(Range<T>[] ranges, T value) {
92 return Arrays.binarySearch(ranges, Range.create(value, value),
236 int value = Integer.parseInt(s);
237 return Range.create(value, value);
257 long value = Long.parseLong(s);
258 return Range.create(value, value);
278 Rational value = Rational.parseRational(s);
279 return Range.create(value, value);
299 Size value = Size.parseSize(s);
300 return Pair.create(value, value);