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

x33g5p2x  于2022-01-24 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(137)

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

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());
}

相关文章