Klasse LongSets.UnmodifiableSet

java.lang.Object
speiger.src.collections.longs.utils.LongCollections.UnmodifiableCollection
speiger.src.collections.longs.utils.LongSets.UnmodifiableSet
Alle implementierten Schnittstellen:
Iterable<Long>, Collection<Long>, Set<Long>, LongCollection, LongIterable, LongSet, ISizeProvider
Umschließende Klasse:
LongSets

public static class LongSets.UnmodifiableSet extends LongCollections.UnmodifiableCollection implements LongSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
  • Methodendetails

    • copy

      public LongSet copy()
      Beschreibung aus Schnittstelle kopiert: LongCollection
      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 LongCollection
      Angegeben von:
      copy in Schnittstelle LongSet
      Setzt außer Kraft:
      copy in Klasse LongCollections.UnmodifiableCollection
      Gibt zurück:
      a Shallow Copy of the collection
    • remove

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