Class FloatSets.UnmodifiableSet

java.lang.Object
it.unimi.dsi.fastutil.floats.FloatSets.UnmodifiableSet
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.FloatCollection, it.unimi.dsi.fastutil.floats.FloatIterable, FloatSet, Serializable, Iterable<Float>, Collection<Float>, Set<Float>
Direct Known Subclasses:
FloatSortedSets.UnmodifiableSortedSet
Enclosing class:
FloatSets

public static class FloatSets.UnmodifiableSet extends Object implements FloatSet, Serializable
An unmodifiable wrapper class for sets.
See Also:
  • Field Details

    • collection

      protected final it.unimi.dsi.fastutil.floats.FloatCollection collection
  • Constructor Details

    • UnmodifiableSet

      protected UnmodifiableSet(FloatSet s)
  • Method Details

    • remove

      public boolean remove(float k)
      Description copied from interface: FloatSet
      Removes an element from this set.
      Specified by:
      remove in interface FloatSet
      See Also:
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<Float>
      Specified by:
      equals in interface Set<Float>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Float>
      Specified by:
      hashCode in interface Set<Float>
    • rem

      @Deprecated public boolean rem(float k)
      Deprecated.
      Description copied from interface: FloatSet
      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.floats.FloatCollection
      Specified by:
      rem in interface FloatSet
    • add

      public boolean add(float arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • size

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

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Float>
    • contains

      public boolean contains(float arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • iterator

      public it.unimi.dsi.fastutil.floats.FloatIterator iterator()
      Specified by:
      iterator in interface Collection<Float>
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
      Specified by:
      iterator in interface Iterable<Float>
    • spliterator

      public it.unimi.dsi.fastutil.floats.FloatSpliterator spliterator()
      Specified by:
      spliterator in interface Collection<Float>
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
      Specified by:
      spliterator in interface Iterable<Float>
    • stream

      @Deprecated public Stream<Float> stream()
      Deprecated.
      Specified by:
      stream in interface Collection<Float>
      Specified by:
      stream in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • parallelStream

      @Deprecated public Stream<Float> parallelStream()
      Deprecated.
      Specified by:
      parallelStream in interface Collection<Float>
      Specified by:
      parallelStream in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<Float>
    • toArray

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

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

      public void forEach(it.unimi.dsi.fastutil.floats.FloatConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.floats.FloatIterable
    • containsAll

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

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

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

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

      public boolean removeIf(it.unimi.dsi.fastutil.floats.FloatPredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • add

      @Deprecated public boolean add(Float arg0)
      Deprecated.
      Specified by:
      add in interface Collection<Float>
      Specified by:
      add in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • contains

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

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface Collection<Float>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • toFloatArray

      public float[] toFloatArray()
      Specified by:
      toFloatArray in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • toFloatArray

      @Deprecated public float[] toFloatArray(float[] arg0)
      Deprecated.
      Specified by:
      toFloatArray in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • toArray

      public float[] toArray(float[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • containsAll

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

      public boolean addAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0)
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • removeAll

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

      public boolean retainAll(it.unimi.dsi.fastutil.floats.FloatCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • doubleIterator

      public it.unimi.dsi.fastutil.doubles.DoubleIterator doubleIterator()
      Specified by:
      doubleIterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      doubleIterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
    • doubleSpliterator

      public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()
      Specified by:
      doubleSpliterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      doubleSpliterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
    • doubleStream

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

      public DoubleStream doubleParallelStream()
      Specified by:
      doubleParallelStream in interface it.unimi.dsi.fastutil.floats.FloatCollection
    • toString

      public String toString()
      Overrides:
      toString in class Object