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

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

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

MinMaxPriorityQueue.getMaxElementIndex介绍

[英]Returns the index of the max element.
[中]返回max元素的索引。

代码示例

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

/**
 * Retrieves, but does not remove, the greatest element of this queue, or returns {@code null} if
 * the queue is empty.
 */
public E peekLast() {
 return isEmpty() ? null : elementData(getMaxElementIndex());
}

代码示例来源: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

/**
 * Retrieves, but does not remove, the greatest element of this queue, or returns {@code null} if
 * the queue is empty.
 */
public E peekLast() {
 return isEmpty() ? null : elementData(getMaxElementIndex());
}

代码示例来源: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

/**
 * Retrieves, but does not remove, the greatest element of this queue, or returns {@code null} if
 * the queue is empty.
 */
public E peekLast() {
 return isEmpty() ? null : elementData(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: 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, or returns {@code null} if the queue is
 * empty.
 */
@CanIgnoreReturnValue
public E pollLast() {
 return isEmpty() ? null : 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: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * 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.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: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * 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.google.guava/guava-jdk5

/**
 * Retrieves, but does not remove, the greatest element of this queue, or
 * returns {@code null} if the queue is empty.
 */
public E peekLast() {
 return isEmpty() ? null : elementData(getMaxElementIndex());
}

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

/**
 * Retrieves, but does not remove, the greatest element of this queue, or
 * returns {@code null} if the queue is empty.
 */
public E peekLast() {
 return isEmpty() ? null : elementData(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.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());
}

相关文章