Class stl_LazyQueue<T>

java.lang.Object
com.jackmeng.stl.stl_LazyQueue<T>

public class stl_LazyQueue<T>
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.util.Queue<T> lazyQueue  
    private java.util.Queue<T> queue  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_LazyQueue()  
  • Method Summary

    Modifier and Type Method Description
    T dequeue()  
    private void drainLazyQueue()  
    void enqueue​(T item)  
    boolean isEmpty()  
    T peek()  
    int size()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • queue

      private final java.util.Queue<T> queue
    • lazyQueue

      private final java.util.Queue<T> lazyQueue
  • Constructor Details

    • stl_LazyQueue

      public stl_LazyQueue()
  • Method Details

    • enqueue

      public void enqueue​(T item)
    • dequeue

      public T dequeue()
    • peek

      public T peek()
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • drainLazyQueue

      private void drainLazyQueue()