java.util.ArrayDeque.offerLast()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(176)

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

ArrayDeque.offerLast介绍

[英]Inserts the specified element at the end of this deque.
[中]在此数据块的末尾插入指定的元素。

代码示例

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

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

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

@Override
public boolean offer(@NonNull final Object o) {
 if (toReject.contains(o)) {
  return false;
 }
 if (toPrioritize.contains(o)) {
  store.offerFirst(o);
 } else {
  store.offerLast(o);
 }
 return true;
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: MobiVM/robovm

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: org.zeromq/jeromq

@Override
public boolean offerLast(ZFrame e)
{
  return frames.offerLast(e);
}

代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: com.jtransc/jtransc-rt

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: ibinti/bugvm

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Inserts the specified element at the end of this deque.
 *
 * <p>This method is equivalent to {@link #offerLast}.
 *
 * @param e the element to add
 * @return <tt>true</tt> (as specified by {@link Queue#offer})
 * @throws NullPointerException if the specified element is null
 */
public boolean offer(E e) {
  return offerLast(e);
}

代码示例来源:origin: ggrandes/kvstore

/**
 * Inserts the specified element at the end of this stack.
 * 
 * @param e the element to add
 */
public final void push(final T e) {
  deque.offerLast(e);
}

代码示例来源:origin: ggrandes/kvstore

private void reuseAfterDelete(final IntLinkedEntry<V> entry) {
  entry.clean();
  cache.offerLast(entry);
}

代码示例来源:origin: us.ihmc/IHMCCommunication

/** {@inheritDoc} */
@Override
public boolean offerLast(C newCommand)
{
 return super.offerLast(copyAndReturnLocalCommand(newCommand));
}

代码示例来源:origin: ggrandes/kvstore

private void reuseAfterDelete(final IntEntry<V> entry) {
  entry.clean();
  cache.offerLast(entry);
}

代码示例来源:origin: org.ballerinalang/ballerina-core

public synchronized boolean lock(Strand ctx) {
    if (isLockFree() || lockedBySameContext(ctx)) {
      current.offerLast(ctx);
      return true;
    }
    waitingForLock.offerLast(ctx);
    //TODO: need to improve on state change
    BVMScheduler.stateChange(ctx, Arrays.asList(State.NEW, State.RUNNABLE), State.PAUSED);
//        BLangScheduler.workerWaitForLock(ctx);
    return false;
  }

代码示例来源:origin: de.unijena.bioinf.ms/fingerprinter_oss

if (!selected.get(i)) stack.offerLast(i);
  if (!selected.get(i)) stack.offerLast(i);

代码示例来源:origin: one.util/streamex

if (s.payload == null)
  break;
res.offerLast(s.payload);
s = s.suffix;

相关文章