Klasse IntSets.UnmodifiableSet

java.lang.Object
speiger.src.collections.ints.utils.IntCollections.UnmodifiableCollection
speiger.src.collections.ints.utils.IntSets.UnmodifiableSet
Alle implementierten Schnittstellen:
Iterable<Integer>, Collection<Integer>, Set<Integer>, IntCollection, IntIterable, IntSet, ISizeProvider
Umschließende Klasse:
IntSets

public static class IntSets.UnmodifiableSet extends IntCollections.UnmodifiableCollection implements IntSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
  • Methodendetails

    • copy

      public IntSet copy()
      Beschreibung aus Schnittstelle kopiert: IntCollection
      A Function that does a shallow clone of the Collection itself. This function is more optimized then a copy constructor since the Collection does not have to be unsorted/resorted. It can be compared to Cloneable but with less exception risk
      Angegeben von:
      copy in Schnittstelle IntCollection
      Angegeben von:
      copy in Schnittstelle IntSet
      Setzt außer Kraft:
      copy in Klasse IntCollections.UnmodifiableCollection
      Gibt zurück:
      a Shallow Copy of the collection
    • remove

      public boolean remove(int o)
      Beschreibung aus Schnittstelle kopiert: IntSet
      A Type Specific remove function to reduce boxing/unboxing
      Angegeben von:
      remove in Schnittstelle IntSet
      Parameter:
      o - the element that should be removed
      Gibt zurück:
      true if the element was removed