Interface XPuttingSet<E>

All Superinterfaces:
CapacityCarrying, CapacityExtendable, Consumer<E>, ExtendedCollection<E>, OptimizableCollection, ReleasingCollection<E>, Sized, XAddingCollection<E>, XAddingSet<E>, XPuttingCollection<E>
All Known Subinterfaces:
XBasicEnum<E>, XBasicTable<K,​V>, XBasicTable.Keys<K,​V>, XChart<K,​V>, XChart.Keys<K,​V>, XEnum<E>, XExpandingEnum<E>, XIncreasingEnum<E>, XInputtingEnum<E>, XMap<K,​V>, XMap.Keys<K,​V>, XPutGetEnum<E>, XPutGetSet<E>, XPuttingEnum<E>, XRank<E>, XSet<E>, XTable<K,​V>, XTable.Keys<K,​V>
All Known Implementing Classes:
EqHashEnum, EqHashTable, EqHashTable.Keys, HashEnum, HashTable, HashTable.Keys, LockedMap, MutexSet, OpenAdressingMiniSet, Single, SynchSet

public interface XPuttingSet<E>
extends XPuttingCollection<E>, XAddingSet<E>, ReleasingCollection<E>
  • Method Details

    • putAll

      XPuttingSet<E> putAll​(E... elements)
      Adds the specified elements to this collection if it is not already present (optional operation).

      In this implementation it overwrites equal, already contained elements.

      Specified by:
      putAll in interface XPuttingCollection<E>
      Parameters:
      elements - to add
      Returns:
      this
    • putAll

      XPuttingSet<E> putAll​(E[] elements, int srcStartIndex, int srcLength)
      Adds the specified elements to this collection if it is not already present (optional operation).
      Only the elements with indizes from the srcStartIndex to the srcStartIndex+srcLength are put in the collection.

      In this implementation it overwrites equal, already contained elements.

      Specified by:
      putAll in interface XPuttingCollection<E>
      Parameters:
      elements - to add
      srcStartIndex - start index of elements-array to add to collection
      srcLength - length of elements-array to add to collection
      Returns:
      this
    • putAll

      XPuttingSet<E> putAll​(XGettingCollection<? extends E> elements)
      Adds the specified elements to this collection if it is not already present (optional operation).

      In this implementation it overwrites equal, already contained elements.

      Specified by:
      putAll in interface XPuttingCollection<E>
      Parameters:
      elements - to add
      Returns:
      this
    • addAll

      XPuttingSet<E> addAll​(E... elements)
      Specified by:
      addAll in interface XAddingCollection<E>
      Specified by:
      addAll in interface XAddingSet<E>
    • addAll

      XPuttingSet<E> addAll​(E[] elements, int srcStartIndex, int srcLength)
      Specified by:
      addAll in interface XAddingCollection<E>
      Specified by:
      addAll in interface XAddingSet<E>
    • addAll

      XPuttingSet<E> addAll​(XGettingCollection<? extends E> elements)
      Specified by:
      addAll in interface XAddingCollection<E>
      Specified by:
      addAll in interface XAddingSet<E>