Klasse DoubleSets.UnmodifiableSet

java.lang.Object
speiger.src.collections.doubles.utils.DoubleCollections.UnmodifiableCollection
speiger.src.collections.doubles.utils.DoubleSets.UnmodifiableSet
Alle implementierten Schnittstellen:
Iterable<Double>, Collection<Double>, Set<Double>, DoubleCollection, DoubleIterable, DoubleSet, ISizeProvider
Umschließende Klasse:
DoubleSets

public static class DoubleSets.UnmodifiableSet extends DoubleCollections.UnmodifiableCollection implements DoubleSet
Unmodifyable Set wrapper that helps is used with unmodifyableSet function
  • Methodendetails

    • copy

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

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