offer
public boolean offer(E e)
Adds the specified element as the tail (last element) of this list.
- Specified by:
-
in interfaceoffer
Deque<E>
Specified by: -
in interfaceoffer
Queue<E>
Parameters: -
- the element to adde
Returns: -
in interfaceadd
Collection<E>
Specified by: -
in interfaceadd
Deque<E>
Specified by: -
in interfaceadd
List<E>
Specified by: -
in interfaceadd
Queue<E>
Overrides: -
in classadd
AbstractList<E>
Parameters: -
- element to be appended to this liste
Returns: -
(as specified bytrue
)Collection.add(E)
true
(as specified by Queue.offer(E)
) add
public boolean add(E e)
Appends the specified element to the end of this list.
This method is equivalent to
addLast(E)
. - Specified by: