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

x33g5p2x  于2022-01-25 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(91)

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

MinMaxPriorityQueue.removeAndGet介绍

[英]Removes and returns the value at index.
[中]移除并返回索引处的值。

代码示例

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

@CanIgnoreReturnValue
@Override
public E poll() {
 return isEmpty() ? null : removeAndGet(0);
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
@CanIgnoreReturnValue
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code null} if the queue is
 * empty.
 */
@CanIgnoreReturnValue
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

@CanIgnoreReturnValue
@Override
public E poll() {
 return isEmpty() ? null : removeAndGet(0);
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
@CanIgnoreReturnValue
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

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

@CanIgnoreReturnValue
@Override
public E poll() {
 return isEmpty() ? null : removeAndGet(0);
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code null} if the queue is
 * empty.
 */
@CanIgnoreReturnValue
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
@CanIgnoreReturnValue
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code null} if the queue is
 * empty.
 */
@CanIgnoreReturnValue
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

代码示例来源:origin: com.atlassian.bundles/guava

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

/**
 * Removes and returns the greatest element of this queue, or returns {@code
 * null} if the queue is empty.
 */
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code
 * null} if the queue is empty.
 */
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

代码示例来源:origin: org.sonatype.sisu/sisu-guava

/**
 * Removes and returns the greatest element of this queue, or returns {@code
 * null} if the queue is empty.
 */
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code
 * null} if the queue is empty.
 */
public E pollLast() {
  return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

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

/**
 * Removes and returns the greatest element of this queue, or returns {@code
 * null} if the queue is empty.
 */
public E pollLast() {
 return isEmpty() ? null : removeAndGet(getMaxElementIndex());
}

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
@CanIgnoreReturnValue
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * Removes and returns the greatest element of this queue.
 *
 * @throws NoSuchElementException if the queue is empty
 */
@CanIgnoreReturnValue
public E removeLast() {
 if (isEmpty()) {
  throw new NoSuchElementException();
 }
 return removeAndGet(getMaxElementIndex());
}

相关文章