Package kilim

Class RingQueue<T>


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

      Fields 
      Modifier and Type Field Description
      protected T[] elements  
      protected int icons  
      protected int iprod  
      protected int maxSize  
      protected int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      RingQueue​(int initialSize)  
      RingQueue​(int initialSize, int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(T obj)  
      T get()  
      T peek()  
      boolean put​(T elem)  
      void reset()  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • elements

        protected T[] elements
      • iprod

        protected int iprod
      • icons

        protected int icons
      • maxSize

        protected int maxSize
      • size

        protected int size
    • Constructor Detail

      • RingQueue

        public RingQueue​(int initialSize)
      • RingQueue

        public RingQueue​(int initialSize,
                         int maxSize)
    • Method Detail

      • size

        public int size()
      • peek

        public T peek()
      • get

        public T get()
      • put

        public boolean put​(T elem)
      • contains

        public boolean contains​(T obj)
      • reset

        public void reset()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object