com.google.common.collect.Range.upperBoundFn()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中com.google.common.collect.Range.upperBoundFn方法的一些代码示例,展示了Range.upperBoundFn的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Range.upperBoundFn方法的具体详情如下:
包路径:com.google.common.collect.Range
类名称:Range
方法名:upperBoundFn

Range.upperBoundFn介绍

暂无

代码示例

代码示例来源:origin: google/j2objc

SortedLists.binarySearch(
  ranges,
  Range.<C>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: google/guava

SortedLists.binarySearch(
  ranges,
  Range.<C>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: google/guava

SortedLists.binarySearch(
  ranges,
  Range.<K>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: google/j2objc

/**
 * A builder for immutable range maps. Overlapping ranges are prohibited.
 *
 * @since 14.0
 */
public static final class Builder<K extends Comparable<?>, V> {
 private final List<Entry<Range<K>, V>> entries;
 public Builder() {
  this.entries = Lists.newArrayList();
 }
 /**
  * Associates the specified range with the specified value.
  *
  * @throws IllegalArgumentException if {@code range} is empty
  */
 @CanIgnoreReturnValue
 public Builder<K, V> put(Range<K> range, V value) {
  checkNotNull(range);
  checkNotNull(value);
  checkArgument(!range.isEmpty(), "Range must not be empty, but was %s", range);
  entries.add(Maps.immutableEntry(range, value));
  return this;
 }
 /** Copies all associations from the specified range map into this builder. */
 @CanIgnoreReturnValue
 public Builder<K, V> putAll(RangeMap<K, ? extends V> rangeMap) {
  for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) {

代码示例来源:origin: wildfly/wildfly

SortedLists.binarySearch(
  ranges,
  Range.<C>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: wildfly/wildfly

SortedLists.binarySearch(
  ranges,
  Range.<K>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: org.hudsonci.lib.guava/guava

if (range.hasLowerBound()) {
 fromIndex = SortedLists.binarySearch(
   ranges, Range.<C>upperBoundFn(), range.lowerBound, KeyPresentBehavior.FIRST_AFTER,
   KeyAbsentBehavior.NEXT_HIGHER);
} else {

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

if (range.hasLowerBound()) {
 fromIndex = SortedLists.binarySearch(
   ranges, Range.<C>upperBoundFn(), range.lowerBound, KeyPresentBehavior.FIRST_AFTER,
   KeyAbsentBehavior.NEXT_HIGHER);
} else {

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

if (range.hasLowerBound()) {
 fromIndex = SortedLists.binarySearch(
   ranges, Range.<C>upperBoundFn(), range.lowerBound, KeyPresentBehavior.FIRST_AFTER,
   KeyAbsentBehavior.NEXT_HIGHER);
} else {

代码示例来源:origin: Nextdoor/bender

if (range.hasLowerBound()) {
 fromIndex = SortedLists.binarySearch(
   ranges, Range.<C>upperBoundFn(), range.lowerBound, KeyPresentBehavior.FIRST_AFTER,
   KeyAbsentBehavior.NEXT_HIGHER);
} else {

代码示例来源:origin: com.diffplug.guava/guava-collect

fromIndex = SortedLists.binarySearch(
    ranges,
    Range.<C> upperBoundFn(),
    range.lowerBound,
    KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

if (range.hasLowerBound()) {
 fromIndex = SortedLists.binarySearch(
   ranges, Range.<C>upperBoundFn(), range.lowerBound, KeyPresentBehavior.FIRST_AFTER,
   KeyAbsentBehavior.NEXT_HIGHER);
} else {

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

ranges, Range.<K>upperBoundFn(), range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER, KeyAbsentBehavior.NEXT_HIGHER);
int upperIndex = SortedLists.binarySearch(ranges,

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

ranges, Range.<K>upperBoundFn(), range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER, KeyAbsentBehavior.NEXT_HIGHER);
int upperIndex = SortedLists.binarySearch(ranges,

代码示例来源:origin: org.hudsonci.lib.guava/guava

ranges, Range.<K>upperBoundFn(), range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER, KeyAbsentBehavior.NEXT_HIGHER);
int upperIndex = SortedLists.binarySearch(ranges,

代码示例来源:origin: com.diffplug.guava/guava-collect

Range.<K> upperBoundFn(),
range.lowerBound,
KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: org.jboss.eap/wildfly-client-all

SortedLists.binarySearch(
  ranges,
  Range.<K>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

ranges, Range.<K>upperBoundFn(), range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER, KeyAbsentBehavior.NEXT_HIGHER);
int upperIndex = SortedLists.binarySearch(ranges,

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

ranges, Range.<K>upperBoundFn(), range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER, KeyAbsentBehavior.NEXT_HIGHER);
int upperIndex = SortedLists.binarySearch(ranges,

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

SortedLists.binarySearch(
  ranges,
  Range.<K>upperBoundFn(),
  range.lowerBound,
  KeyPresentBehavior.FIRST_AFTER,

相关文章