Class DoubleSets.SynchronizedSet

java.lang.Object
it.unimi.dsi.fastutil.doubles.DoubleSets.SynchronizedSet
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.DoubleCollection, it.unimi.dsi.fastutil.doubles.DoubleIterable, DoubleSet, Serializable, Iterable<Double>, Collection<Double>, Set<Double>
Direct Known Subclasses:
DoubleSortedSets.SynchronizedSortedSet
Enclosing class:
DoubleSets

public static class DoubleSets.SynchronizedSet extends Object implements DoubleSet, Serializable
A synchronized wrapper class for sets.
See Also:
  • Field Details

    • collection

      protected final it.unimi.dsi.fastutil.doubles.DoubleCollection collection
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedSet

      protected SynchronizedSet(DoubleSet s, Object sync)
    • SynchronizedSet

      protected SynchronizedSet(DoubleSet s)
  • Method Details

    • remove

      public boolean remove(double k)
      Description copied from interface: DoubleSet
      Removes an element from this set.
      Specified by:
      remove in interface DoubleSet
      See Also:
    • rem

      @Deprecated public boolean rem(double k)
      Deprecated.
      Description copied from interface: DoubleSet
      Removes an element from this set.

      This method is inherited from the type-specific collection this type-specific set is based on, but it should not used as this interface reinstates remove() as removal method.

      Specified by:
      rem in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
      Specified by:
      rem in interface DoubleSet
    • add

      public boolean add(double arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • contains

      public boolean contains(double arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • size

      public int size()
      Specified by:
      size in interface Collection<Double>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Double>
    • toDoubleArray

      public double[] toDoubleArray()
      Specified by:
      toDoubleArray in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<Double>
    • toDoubleArray

      @Deprecated public double[] toDoubleArray(double[] arg0)
      Deprecated.
      Specified by:
      toDoubleArray in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • toArray

      public double[] toArray(double[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • addAll

      public boolean addAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0)
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • containsAll

      public boolean containsAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • removeAll

      public boolean removeAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0)
      Specified by:
      removeAll in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • retainAll

      public boolean retainAll(it.unimi.dsi.fastutil.doubles.DoubleCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • add

      @Deprecated public boolean add(Double arg0)
      Deprecated.
      Specified by:
      add in interface Collection<Double>
      Specified by:
      add in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • contains

      @Deprecated public boolean contains(Object arg0)
      Deprecated.
      Specified by:
      contains in interface Collection<Double>
      Specified by:
      contains in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • remove

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface Collection<Double>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • doubleIterator

      public it.unimi.dsi.fastutil.doubles.DoubleIterator doubleIterator()
      Specified by:
      doubleIterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
      Specified by:
      doubleIterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterable
    • doubleSpliterator

      public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()
      Specified by:
      doubleSpliterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
      Specified by:
      doubleSpliterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterable
    • doubleStream

      public DoubleStream doubleStream()
      Specified by:
      doubleStream in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • doubleParallelStream

      public DoubleStream doubleParallelStream()
      Specified by:
      doubleParallelStream in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • toArray

      public <T> T[] toArray(T[] arg0)
      Specified by:
      toArray in interface Collection<Double>
    • iterator

      public it.unimi.dsi.fastutil.doubles.DoubleIterator iterator()
      Specified by:
      iterator in interface Collection<Double>
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterable
      Specified by:
      iterator in interface Iterable<Double>
    • spliterator

      public it.unimi.dsi.fastutil.doubles.DoubleSpliterator spliterator()
      Specified by:
      spliterator in interface Collection<Double>
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.doubles.DoubleIterable
      Specified by:
      spliterator in interface Iterable<Double>
    • stream

      @Deprecated public Stream<Double> stream()
      Deprecated.
      Specified by:
      stream in interface Collection<Double>
      Specified by:
      stream in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • parallelStream

      @Deprecated public Stream<Double> parallelStream()
      Deprecated.
      Specified by:
      parallelStream in interface Collection<Double>
      Specified by:
      parallelStream in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • forEach

      public void forEach(DoubleConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.doubles.DoubleIterable
    • addAll

      public boolean addAll(Collection<? extends Double> arg0)
      Specified by:
      addAll in interface Collection<Double>
    • containsAll

      public boolean containsAll(Collection<?> arg0)
      Specified by:
      containsAll in interface Collection<Double>
    • removeAll

      public boolean removeAll(Collection<?> arg0)
      Specified by:
      removeAll in interface Collection<Double>
    • retainAll

      public boolean retainAll(Collection<?> arg0)
      Specified by:
      retainAll in interface Collection<Double>
    • removeIf

      public boolean removeIf(DoublePredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.doubles.DoubleCollection
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<Double>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Double>
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object arg0)
      Specified by:
      equals in interface Collection<Double>
      Overrides:
      equals in class Object