Code example for Map

Methods: remove

0
   * Get the job identified by {@link JobID} and remove it from the mapping. 
   * @param jobId id of the job. 
   * @return {@link JobStory} object of the job. 
   */ 
  public static JobStory get(JobID jobId) { 
    return submittedJobs.remove(jobId); 
  } 
   
  /** 
   * Check the job at the head of queue, without removing it from the mapping. 
   * @param jobId id of the job. 
   * @return {@link JobStory} object of the job. 
   */ 
  public static JobStory peek(JobID jobId) { 
    return submittedJobs.get(jobId); 
  } 
}