add the given element to the queue , possibly forcing an eviction from the head if #remainingcapacity iszero . concode_field_sep int maximumSize concode_elem_sep ArrayDeque<T> queue concode_field_sep boolean containsAll concode_elem_sep boolean isEmpty concode_elem_sep void clear concode_elem_sep T poll concode_elem_sep T remove concode_elem_sep boolean remove concode_elem_sep T peek concode_elem_sep boolean offer concode_elem_sep boolean contains concode_elem_sep Iterator<T> iterator concode_elem_sep boolean removeAll concode_elem_sep int size concode_elem_sep boolean addAll concode_elem_sep Object[] toArray concode_elem_sep T1[] toArray concode_elem_sep int remainingCapacity concode_elem_sep T element concode_elem_sep boolean retainAll
boolean function ( T arg0 ) { if ( maximumSize == 0 ) { return true ; } if ( queue . size ( ) == maximumSize ) { queue . remove ( ) ; } queue . add ( arg0 ) ; return true ; }