Class FixedSizeBuffer$FixedSizeBuffer<T>

    • Constructor Detail

      • FixedSizeBuffer$FixedSizeBuffer

        public FixedSizeBuffer$FixedSizeBuffer​(int capacity)
    • Method Detail

      • capacity

        public int capacity()
        Specified by:
        capacity in interface Buffer<T>
      • clear

        public void clear()
        Specified by:
        clear in interface Buffer<T>
      • dequeue

        public T dequeue()
        Specified by:
        dequeue in interface Buffer<T>
      • dropHead

        public void dropHead()
        Specified by:
        dropHead in interface Buffer<T>
      • dropTail

        public void dropTail()
        Specified by:
        dropTail in interface Buffer<T>
      • enqueue

        public void enqueue​(T elem)
        Specified by:
        enqueue in interface Buffer<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Buffer<T>
      • isFull

        public boolean isFull()
        Specified by:
        isFull in interface Buffer<T>
      • nonEmpty

        public boolean nonEmpty()
        Specified by:
        nonEmpty in interface Buffer<T>
      • nonFull

        public boolean nonFull()
      • peek

        public T peek()
        Specified by:
        peek in interface Buffer<T>
      • readIdx

        protected long readIdx()
      • readIdx_$eq

        protected void readIdx_$eq​(long x$1)
      • remainingCapacity

        public int remainingCapacity()
      • toOffset

        protected abstract int toOffset​(long idx,
                                        boolean maintenance)
      • toString

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

        public int used()
        Specified by:
        used in interface Buffer<T>
      • writeIdx

        protected long writeIdx()
      • writeIdx_$eq

        protected void writeIdx_$eq​(long x$1)