Java Reference
In-Depth Information
to do so immediately without violating capacity restrictions), and inheriting the other
methodsfrom Collection . Table5-5 describes add() andtheother Queue -specif-
ic methods.
Table5-5 revealstwosetsofmethods:inoneset,amethod(suchas add() )throws
anexceptionwhenanoperationfails;intheotherset,amethod(suchas offer() )re-
 
Search WWH ::




Custom Search