Interface XReplacingBag<E>

    • Method Detail

      • replaceOne

        boolean replaceOne​(E element,
                           E replacement)
      • replace

        long replace​(E element,
                     E replacement)
      • replaceOne

        boolean replaceOne​(Predicate<? super E> predicate,
                           E replacement)
      • replace

        long replace​(Predicate<? super E> predicate,
                     E replacement)
      • copy

        XReplacingBag<E> copy()
        Description copied from interface: XGettingCollection
        Creates a true copy of this collection which references the same elements as this collection does at the time the method is called. The elements themselves are NOT copied (no deep copying).
        The type of the returned set is the same as of this list if possible.
        Specified by:
        copy in interface Copyable
        Specified by:
        copy in interface XGettingCollection<E>
        Returns:
        a copy of this list