Interface CircularFifoBuffer<T>

    • Method Detail

      • toList

        io.vavr.collection.List<T> toList()
        Returns a list containing all of the elements in this CircularFifoBuffer. The elements are copied into an array.
        Returns:
        a list containing all of the elements in this CircularFifoBuffer
      • add

        void add​(T element)
        Adds element to the CircularFifoBuffer and overwrites the oldest element when isFull().
        Parameters:
        element - to add
        Throws:
        java.lang.NullPointerException - if the specified element is null
      • take

        io.vavr.control.Option<T> take()
        Retrieves and removes the head of this queue, or returns Option.None if this queue is empty.
        Returns:
        the head of this queue, or Option.None if this queue is empty