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

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

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

Range.compareOrThrow介绍

暂无

代码示例

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) <= 0;
}

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) < 0;
}

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) <= 0;
}

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) < 0;
}

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) <= 0;
}

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

@Override
boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) < 0;
}

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

private static boolean equalsOrThrow(Comparable<?> left, @Nullable Comparable<?> right) {
 return right != null && Range.compareOrThrow(left, right) == 0;
}

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

private static boolean equalsOrThrow(Comparable<?> left, @NullableDecl Comparable<?> right) {
 return right != null && Range.compareOrThrow(left, right) == 0;
}

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

private static boolean equalsOrThrow(Comparable<?> left, @NullableDecl Comparable<?> right) {
 return right != null && Range.compareOrThrow(left, right) == 0;
}

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

@Override
public int compareTo(Cut<C> that) {
 if (that == belowAll()) {
  return 1;
 }
 if (that == aboveAll()) {
  return -1;
 }
 int result = Range.compareOrThrow(endpoint, that.endpoint);
 if (result != 0) {
  return result;
 }
 // same value. below comes before above
 return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
}

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

@Override
public int compareTo(Cut<C> that) {
 if (that == belowAll()) {
  return 1;
 }
 if (that == aboveAll()) {
  return -1;
 }
 int result = Range.compareOrThrow(endpoint, that.endpoint);
 if (result != 0) {
  return result;
 }
 // same value. below comes before above
 return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
}

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

@Override
public int compareTo(Cut<C> that) {
 if (that == belowAll()) {
  return 1;
 }
 if (that == aboveAll()) {
  return -1;
 }
 int result = Range.compareOrThrow(endpoint, that.endpoint);
 if (result != 0) {
  return result;
 }
 // same value. below comes before above
 return Booleans.compare(this instanceof AboveValue, that instanceof AboveValue);
}

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

|| Range.compareOrThrow(
    range.lowerBound.leastValueAbove(domain),
    range.upperBound.greatestValueBelow(domain))

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

|| Range.compareOrThrow(
    range.lowerBound.leastValueAbove(domain),
    range.upperBound.greatestValueBelow(domain))

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

|| Range.compareOrThrow(
    range.lowerBound.leastValueAbove(domain),
    range.upperBound.greatestValueBelow(domain))

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

@Override boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) <= 0;
}
@Override BoundType typeAsLowerBound() {

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

@Override boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) < 0;
}
@Override BoundType typeAsLowerBound() {

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

@Override boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) < 0;
}
@Override BoundType typeAsLowerBound() {

代码示例来源:origin: com.google.guava/guava-jdk5

@Override boolean isLessThan(C value) {
 return Range.compareOrThrow(endpoint, value) <= 0;
}
@Override BoundType typeAsLowerBound() {

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

@Override
boolean isLessThan(C value) {
  return Range.compareOrThrow(endpoint, value) <= 0;
}

相关文章