add
Inserts the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and throwing an IllegalStateException if no space is currently available.
This implementation returns true if offer succeeds, else throws an IllegalStateException.
Return
true (as specified by Collection.add)
Parameters
e
the element to add
Throws
if the element cannot be added at this time due to capacity restrictions
if the class of the specified element prevents it from being added to this queue
if the specified element is null and this queue does not permit null elements
if some property of this element prevents it from being added to this queue