Class AbstractBufferDecorator

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, Buffer
    Direct Known Subclasses:
    UnmodifiableBuffer

    @Deprecated(since="2021-04-30")
    public abstract class AbstractBufferDecorator
    extends AbstractCollectionDecorator
    implements Buffer
    Deprecated.
    Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.
    Decorates another Buffer to provide additional behaviour.

    Methods are forwarded directly to the decorated buffer.

    Since:
    Commons Collections 3.0
    • Method Detail

      • get

        public java.lang.Object get()
        Deprecated.
        Description copied from interface: Buffer
        Gets the next object from the buffer without removing it.
        Specified by:
        get in interface Buffer
        Returns:
        the next object in the buffer, which is not removed
      • remove

        public java.lang.Object remove()
        Deprecated.
        Description copied from interface: Buffer
        Gets and removes the next object from the buffer.
        Specified by:
        remove in interface Buffer
        Returns:
        the next object in the buffer, which is also removed