Interface ExtendedBufferList<T>

  • All Superinterfaces:
    BufferList<T>, java.util.Collection<T>, java.lang.Iterable<T>

    public interface ExtendedBufferList<T>
    extends BufferList<T>
    An extension of BufferList which can maintain its sorted state and eagerly remove duplicates when elements are inserted.
    Since:
    3.1.1
    Author:
    Pavel Klinov
    • Method Detail

      • filterDuplicates

        void filterDuplicates()
        Eagerly removes duplicates from the underlying buffer; does not change the relative order of distinct elements. Thus filtering duplicates can potentially reduce the size of the list but it will retain any existing ordering.
      • uniqueIterator

        com.google.common.collect.PeekingIterator<T> uniqueIterator()
        Lazy elimination of duplicates. sort(Comparator) has to be called prior to this method.
        Returns:
        an iterator which lazily eliminates duplicates.