Interface XGettingSet<E>

Type Parameters:
E - type of contained elements
All Superinterfaces:
CapacityCarrying, Copyable, ExtendedCollection<E>, Iterable<E>, Sized, XGettingCollection<E>, XIterable<E>, XJoinable<E>
All Known Subinterfaces:
XAddGetMap<K,​V>, XAddGetSet<E>, XBasicEnum<E>, XBasicTable<K,​V>, XBasicTable.Keys<K,​V>, XChart<K,​V>, XChart.Keys<K,​V>, XDecreasingEnum<E>, XEnum<E>, XGettingEnum<E>, XGettingMap<K,​V>, XGettingMap.Keys<K,​V>, XGettingTable<K,​V>, XGettingTable.Keys<K,​V>, XImmutableEnum<E>, XImmutableEnum.Factory<E>, XImmutableMap<K,​V>, XImmutableMap.Keys<K,​V>, XImmutableSet<E>, XImmutableTable<K,​V>, XImmutableTable.Keys<K,​V>, XIncreasingEnum<E>, XMap<K,​V>, XMap.Keys<K,​V>, XProcessingEnum<E>, XProcessingMap<K,​V>, XProcessingMap.Keys<K,​V>, XProcessingSet<E>, XPutGetEnum<E>, XPutGetMap<K,​V>, XPutGetSet<E>, XRank<E>, XReference<E>, XReferencing<E>, XSet<E>, XSettingEnum<E>, XSortableEnum<E>, XTable<K,​V>, XTable.Keys<K,​V>
All Known Implementing Classes:
Constant, ConstHashEnum, ConstHashTable, ConstHashTable.Keys, ConstLinearEnum, Empty, EmptyTable, EnumProcessor, EnumView, EqConstHashEnum, EqConstHashTable, EqConstHashTable.Keys, EqHashEnum, EqHashTable, EqHashTable.Keys, HashEnum, HashTable, HashTable.Keys, LinkingReferencing.Default, LinkReference.Default, LockedGettingMap, LockedMap, MapView, MutexSet, OpenAdressingMiniSet, SetView, Single, Singleton, SingletonView, SynchSet, TableView

public interface XGettingSet<E>
extends XGettingCollection<E>
  • Method Details

    • immure

      XImmutableSet<E> immure()
      Description copied from interface: XGettingCollection
      Provides an instance of an immutable collection type with equal behavior and data as this instance.

      If this instance already is of an immutable collection type, it returns itself.

      Specified by:
      immure in interface XGettingCollection<E>
      Returns:
      an immutable copy of this collection instance.
    • copy

      XGettingSet<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
    • iterate

      <P extends Consumer<? super E>> P iterate​(P procedure)
      Description copied from interface: XIterable
      Executes the given procedure for each element of the XIterable until all elements have been processed or the action throws an exception. Unless otherwise specified by the implementing class, procedures are performed in the order of iteration (if an iteration order is specified). Exceptions thrown by the procedure are relayed to the caller.
      Should be identical to Iterable.forEach(Consumer).
      Specified by:
      iterate in interface XIterable<E>
      Type Parameters:
      P - type of procedure
      Parameters:
      procedure - The procedure to be performed for each element
      Returns:
      Given procedure