Class CircularLongBuffer4

  • All Implemented Interfaces:
    Iterable4<java.lang.Long>

    public class CircularLongBuffer4
    extends java.lang.Object
    implements Iterable4<java.lang.Long>
    A fixed size double ended queue with O(1) complexity for addFirst, removeFirst and removeLast operations.
    • Constructor Detail

      • CircularLongBuffer4

        public CircularLongBuffer4​(int size)
    • Method Detail

      • size

        public int size()
      • addFirst

        public void addFirst​(long value)
      • removeLast

        public long removeLast()
      • isEmpty

        public boolean isEmpty()
      • isFull

        public boolean isFull()
      • removeFirst

        public long removeFirst()
      • remove

        public boolean remove​(long value)
      • contains

        public boolean contains​(long value)