本文整理了Java中com.google.common.collect.Maps.keyOrNull()
方法的一些代码示例,展示了Maps.keyOrNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Maps.keyOrNull()
方法的具体详情如下:
包路径:com.google.common.collect.Maps
类名称:Maps
方法名:keyOrNull
暂无
代码示例来源:origin: google/guava
/**
* A sensible definition of {@link #lowerKey} in terms of {@code lowerEntry}. If you override
* {@link #lowerEntry}, you may wish to override {@code lowerKey} to forward to this
* implementation.
*/
protected K standardLowerKey(K key) {
return keyOrNull(lowerEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K floorKey(K key) {
return keyOrNull(floorEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K lowerKey(K key) {
return Maps.keyOrNull(lowerEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K ceilingKey(K key) {
return Maps.keyOrNull(ceilingEntry(key));
}
代码示例来源:origin: google/guava
/**
* A sensible definition of {@link #ceilingKey} in terms of {@code ceilingEntry}. If you override
* {@code ceilingEntry}, you may wish to override {@code ceilingKey} to forward to this
* implementation.
*/
protected K standardCeilingKey(K key) {
return keyOrNull(ceilingEntry(key));
}
代码示例来源:origin: google/guava
/**
* A sensible definition of {@link #floorKey} in terms of {@code floorEntry}. If you override
* {@code floorEntry}, you may wish to override {@code floorKey} to forward to this
* implementation.
*/
protected K standardFloorKey(K key) {
return keyOrNull(floorEntry(key));
}
代码示例来源:origin: google/guava
/**
* A sensible definition of {@link #higherKey} in terms of {@code higherEntry}. If you override
* {@code higherEntry}, you may wish to override {@code higherKey} to forward to this
* implementation.
*/
protected K standardHigherKey(K key) {
return keyOrNull(higherEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K higherKey(K key) {
return keyOrNull(higherEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K floorKey(K key) {
return Maps.keyOrNull(floorEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K higherKey(K key) {
return Maps.keyOrNull(higherEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K lowerKey(K key) {
return keyOrNull(lowerEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K ceilingKey(K key) {
return keyOrNull(ceilingEntry(key));
}
代码示例来源:origin: google/j2objc
/**
* A sensible definition of {@link #ceilingKey} in terms of {@code ceilingEntry}. If you override
* {@code ceilingEntry}, you may wish to override {@code ceilingKey} to forward to this
* implementation.
*/
protected K standardCeilingKey(K key) {
return keyOrNull(ceilingEntry(key));
}
代码示例来源:origin: google/j2objc
@Override
public K higherKey(K key) {
return keyOrNull(higherEntry(key));
}
代码示例来源:origin: google/j2objc
/**
* A sensible definition of {@link #lowerKey} in terms of {@code lowerEntry}. If you override
* {@link #lowerEntry}, you may wish to override {@code lowerKey} to forward to this
* implementation.
*/
protected K standardLowerKey(K key) {
return keyOrNull(lowerEntry(key));
}
代码示例来源:origin: google/j2objc
/**
* A sensible definition of {@link #floorKey} in terms of {@code floorEntry}. If you override
* {@code floorEntry}, you may wish to override {@code floorKey} to forward to this
* implementation.
*/
protected K standardFloorKey(K key) {
return keyOrNull(floorEntry(key));
}
代码示例来源:origin: google/j2objc
/**
* A sensible definition of {@link #higherKey} in terms of {@code higherEntry}. If you override
* {@code higherEntry}, you may wish to override {@code higherKey} to forward to this
* implementation.
*/
protected K standardHigherKey(K key) {
return keyOrNull(higherEntry(key));
}
代码示例来源:origin: google/j2objc
@Override
public K floorKey(K key) {
return Maps.keyOrNull(floorEntry(key));
}
代码示例来源:origin: google/guava
@Override
public K pollLast() {
return keyOrNull(map().pollLastEntry());
}
代码示例来源:origin: google/guava
@Override
public K pollFirst() {
return keyOrNull(map().pollFirstEntry());
}
内容来源于网络,如有侵权,请联系作者删除!