Code example for List

Methods: isEmpty, remove

0
   * 
   * @return the next started {@code Intent} for an activity, wrapped in 
   *         an {@link ShadowActivity.IntentForResult} object 
   */ 
  public IntentForResult getNextStartedActivityForResult() { 
    if (startedActivitiesForResults.isEmpty()) {
      return null; 
    } else { 
      return startedActivitiesForResults.remove(0);
    } 
  } 
 
  /** 
   * Non-Android accessor returns the most recent {@code Intent} started by 
   * {@link #startActivityForResult(android.content.Intent, int)} without 
   * consuming it. 
   * 
   * @return the most recently started {@code Intent}, wrapped in 
   *         an {@link ShadowActivity.IntentForResult} object 
   */ 
  public IntentForResult peekNextStartedActivityForResult() {