本文整理了Java中java.util.concurrent.ConcurrentSkipListMap.descendingMap()
方法的一些代码示例,展示了ConcurrentSkipListMap.descendingMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentSkipListMap.descendingMap()
方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentSkipListMap
类名称:ConcurrentSkipListMap
方法名:descendingMap
[英]Lazily initialized descending key set
[中]延迟初始化的降序键集
代码示例来源:origin: robovm/robovm
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: loklak/loklak_server
public Collection<Track> getTracks() {
List<Track> tracks = new ArrayList<>();
for (Track track: this.pendingQueue.descendingMap().values()) tracks.add(track);
for (Track track: this.finishedQueue.descendingMap().values()) tracks.add(track);
return tracks;
}
代码示例来源:origin: apache/storm
private void ensureCapacity() {
if (size >= maximumSize) {
Iterator<Map.Entry<K, V>> it = map.descendingMap().entrySet().iterator();
while (it.hasNext()) {
Map.Entry<K, V> next = it.next();
if (!isPinned(next.getKey())) {
it.remove();
if (removalListener != null) {
removalListener.onRemoval(next.getKey(), next.getValue(), RemovalCause.REPLACED);
}
--size;
break;
}
}
}
}
代码示例来源:origin: apache/geode
@Override
public CloseableIterator<CachedDeserializable> descendingKeyIterator() {
return new KeyItr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: apache/geode
@Override
public CloseableIterator<IndexEntry> descendingIterator() {
return new Itr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: apache/geode
public CloseableIterator<CachedDeserializable> descendingValueIterator() {
return new ItrAdapter(map.descendingMap().values().iterator());
}
代码示例来源:origin: apache/incubator-gobblin
long historicalQueuedTaskTotalTime = 0;
long cutoff = currentTimeMillis - queuedTaskTimeMaxAge;
Iterator<Map.Entry<Long, Long>> iterator = queuedTaskTimeHistorical.descendingMap().entrySet().iterator();
while (iterator.hasNext()) {
try {
代码示例来源:origin: MobiVM/robovm
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: com.bugvm/bugvm-rt
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: ibinti/bugvm
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: FlexoVM/flexovm
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: com.gluonhq/robovm-rt
public NavigableSet<K> descendingKeySet() {
return descendingMap().navigableKeySet();
}
代码示例来源:origin: io.snappydata/gemfire-core
@Override
public CloseableIterator<IndexStoreEntry> descendingIterator(
Collection keysToRemove) {
return new MemoryIndexStoreIterator(this.valueToEntriesMap
.descendingMap().entrySet().iterator(), null, null, keysToRemove);
}
代码示例来源:origin: io.snappydata/gemfire-core
@Override
public CloseableIterator<IndexEntry> descendingIterator() {
return new Itr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: org.apache.geode/gemfire-core
@Override
public CloseableIterator<IndexEntry> descendingIterator() {
return new Itr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: org.apache.geode/gemfire-core
public CloseableIterator<CachedDeserializable> descendingValueIterator() {
return new ItrAdapter(map.descendingMap().values().iterator());
}
代码示例来源:origin: io.snappydata/gemfire-core
@Override
public CloseableIterator<CachedDeserializable> descendingKeyIterator() {
return new KeyItr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: org.apache.geode/gemfire-core
@Override
public CloseableIterator<CachedDeserializable> descendingKeyIterator() {
return new KeyItr(map.descendingMap().entrySet().iterator());
}
代码示例来源:origin: cinchapi/concourse
@Override
public ConcurrentNavigableMap<K, V> descendingMap() {
long[] stamps = grabAllSegmentWriteLocks();
try {
sort();
return sorted.descendingMap();
}
finally {
releaseSegmentLocks(stamps);
}
}
内容来源于网络,如有侵权,请联系作者删除!