μ μΈ : Queue< Element > q = new LinkedList<>();
λ©μλ | μ€λͺ |
---|---|
boolean add(E e) | μ λ¬λ Element μ½μ |
E element() | Elementλ₯Ό λ°ννμ§λ§ μ κ±°λ μλ¨ |
boolean offer(E e) | μ λ¬λ Element μ½μ |
E peek() | κ°μ₯ λ§μ§λ§ μμ νμΈ (μμΌλ©΄ null λ°ν) |
E poll() | κ°μ₯ μ μμ λ°ν ν μ κ±° (μμΌλ©΄ null λ°ν) |
E remove() | κ°μ₯ μ μμ λ°ν ν μ κ±° |
μ΄ μΈμλ Collectionμμ μ 곡νλ λ©μλ μ¬μ© κ°λ₯
addAll
, clear
, contains
, containsAll
, equals
, hashCode
, isEmpty
, iterator
, remove
, removeAll
, retainAll
, size
, toArray
, toArray