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

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

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

ArrayDeque.removeLast介绍

暂无

代码示例

代码示例来源:origin: bumptech/glide

@Override
public Bitmap removeLast() {
 numRemoves++;
 return bitmaps.removeLast();
}

代码示例来源:origin: bumptech/glide

@Override
public Bitmap get(int width, int height, Bitmap.Config config) {
 return bitmaps.isEmpty() ? null : bitmaps.removeLast();
}

代码示例来源:origin: google/google-java-format

/** Close the current {@link Doc.Level}. */
void close() {
 Doc.Level top = stack.removeLast();
 stack.peekLast().add(top);
}

代码示例来源:origin: apache/flume

" should never happen, please report");
while (!takeList.isEmpty()) {
 memQueue.addFirst(takeList.removeLast());

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

@Override
public void endSet() throws ASN1Exception {
  DecoderState lastState = states.peekLast();
  if ((lastState == null) || (lastState.getTag() != SET_TYPE)) {
    throw log.noSetToEnd();
  }
  endConstructedElement(lastState.getNextElementIndex());
  states.removeLast();
}

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

@Override
public void endSequence() throws ASN1Exception {
  DecoderState lastState = states.peekLast();
  if ((lastState == null) || (lastState.getTag() != SEQUENCE_TYPE)) {
    throw log.noSequenceToEnd();
  }
  endConstructedElement(lastState.getNextElementIndex());
  states.removeLast();
}

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

private void endConstructedElement() {
  ByteStringBuilder dest;
  if (currentBufferPos > 0) {
    // Output the element to its parent buffer
    dest = buffers.get(currentBufferPos - 1);
  } else {
    // Output the element directly to the target destination
    dest = target;
  }
  int length = currentBuffer.length();
  int numLengthOctets = writeLength(length, dest);
  dest.append(currentBuffer);
  currentBuffer.setLength(0);
  currentBuffer = dest;
  currentBufferPos -= 1;
  states.removeLast();
  // If this element's parent element is a set element, update the parent's accumulated length
  EncoderState lastState = states.peekLast();
  if ((lastState != null) && (lastState.getTag() == SET_TYPE)) {
    lastState.addChildLength(1 + numLengthOctets + length);
  }
}

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

@Override
public void endExplicit() throws ASN1Exception {
  DecoderState lastState = states.peekLast();
  if ((lastState == null) || (lastState.getTag() == SEQUENCE_TYPE)
      || (lastState.getTag() == SET_TYPE) || ((lastState.getTag() & CONSTRUCTED_MASK) == 0)) {
    throw log.noExplicitlyTaggedElementToEnd();
  }
  endConstructedElement(lastState.getNextElementIndex());
  states.removeLast();
}

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

states.removeLast();

代码示例来源:origin: deeplearning4j/nd4j

frameLeft = false;
val frame_name = frames.removeLast();
flowPath.activateFrame(frame_name, false);
flowPath.forgetFrame(frame_name);

代码示例来源:origin: BaseXdb/basex

/**
 * Removes and returns the current variable scope.
 * @return the removed element
 */
public VarScope removeScope() {
 return scopes.removeLast();
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<ExprNodeAdapterBase, EventEvaluator> entry : evaluatorsMap.entrySet()) {
      evaluatorStack.add(new FilterItem(PROPERTY_NAME_BOOLEAN_EXPRESSION, getFilterOperator(), entry));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<HashableMultiKey, EventEvaluator> entry : filterValueEvaluators.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getValue()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<Object, EventEvaluator> entry : constantsMap.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getKey()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<Object, EventEvaluator> entry : constantsMap.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getKey()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<StringRange, EventEvaluator> entry : ranges.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getKey()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
  for (Map.Entry<Object, EventEvaluator> entry : constantsMap.entrySet()) {
    evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getKey()));
    entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
    evaluatorStack.removeLast();
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<DoubleRange, EventEvaluator> entry : ranges.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getKey()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

代码示例来源:origin: espertechinc/esper

public void getTraverseStatement(EventTypeIndexTraverse traverse, Set<Integer> statementIds, ArrayDeque<FilterItem> evaluatorStack) {
    for (Map.Entry<Object, EventEvaluator> entry : constantsMap.entrySet()) {
      evaluatorStack.add(new FilterItem(lookupable.getExpression(), getFilterOperator(), entry.getValue()));
      entry.getValue().getTraverseStatement(traverse, statementIds, evaluatorStack);
      evaluatorStack.removeLast();
    }
  }
}

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

public synchronized void unlock() {
  //current cannot be empty as unlock cannot be called without lock being called first.
  current.removeLast();
  if (!waitingForLock.isEmpty()) {
    Strand ctx = waitingForLock.removeFirst();
    //So the lock instruction will run again
    ctx.currentFrame.ip--;
    BVMScheduler.stateChange(ctx, State.PAUSED, State.RUNNABLE);
    BVMScheduler.schedule(ctx);
  }
}

相关文章