码迷,mamicode.com
首页 > 编程语言 > 详细

Java LinkedList - differences between retrieve operations

时间:2015-12-30 07:02:43      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

Returning null + removing operations: poll()pollFirst().

Returning null + not removing operations: peek()peekFirst().

Throwing exception + removing operations: pop()remove()removeFirst().

Throwing exception + not removing operations: element()getFirst().

 

reference: http://stackoverflow.com/questions/14851367/java-linkedlist-differences-between-retrieve-operations

 

Java LinkedList - differences between retrieve operations

标签:

原文地址:http://www.cnblogs.com/hygeia/p/5087617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!