本文整理了Java中com.google.common.collect.Range.compareOrThrow
方法的一些代码示例,展示了Range.compareOrThrow
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Range.compareOrThrow
方法的具体详情如下:
包路径:com.google.common.collect.Range
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!