src/share/classes/java/util/concurrent/ConcurrentSkipListSet.java
Print this page
*** 360,375 ****
return m.higherKey(e);
}
public E pollFirst() {
Map.Entry<E,Object> e = m.pollFirstEntry();
! return e == null? null : e.getKey();
}
public E pollLast() {
Map.Entry<E,Object> e = m.pollLastEntry();
! return e == null? null : e.getKey();
}
/* ---------------- SortedSet operations -------------- */
--- 360,375 ----
return m.higherKey(e);
}
public E pollFirst() {
Map.Entry<E,Object> e = m.pollFirstEntry();
! return (e == null) ? null : e.getKey();
}
public E pollLast() {
Map.Entry<E,Object> e = m.pollLastEntry();
! return (e == null) ? null : e.getKey();
}
/* ---------------- SortedSet operations -------------- */