Class ImmutableIntSet
- java.lang.Object
-
- org.apache.ignite.internal.util.collection.ImmutableIntSet
-
-
Constructor Summary
Constructors Constructor Description ImmutableIntSet(Set<Integer> delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(int element)Adds the specified element to this set.booleanadd(Integer integer)booleanaddAll(@NotNull Collection<? extends Integer> c)voidclear()booleancontains(int element)Returns true if this set contains the specified element.booleancontains(Object o)booleancontainsAll(Collection<?> coll)static ImmutableIntSetemptySet()booleanequals(Object o)voidforEach(Consumer<? super Integer> act)inthashCode()booleanisEmpty()@NotNull Iterator<Integer>iterator()Stream<Integer>parallelStream()booleanremove(int element)Removes the specified element from this set.booleanremove(Object o)booleanremoveAll(@NotNull Collection<?> c)booleanremoveIf(Predicate<? super Integer> filter)booleanretainAll(@NotNull Collection<?> c)intsize()Spliterator<Integer>spliterator()Stream<Integer>stream()@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] a)int[]toIntArray()Returns array with primitive typesStringtoString()static ImmutableIntSetwrap(Set<Integer> delegate)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
toArray
-
-
-
-
Method Detail
-
wrap
public static ImmutableIntSet wrap(Set<Integer> delegate)
- Parameters:
delegate- Delegate.
-
emptySet
public static ImmutableIntSet emptySet()
-
contains
public boolean contains(int element)
Returns true if this set contains the specified element.
-
containsAll
public boolean containsAll(Collection<?> coll)
- Specified by:
containsAllin interfaceCollection<Integer>- Specified by:
containsAllin interfaceSet<Integer>
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a)
-
toIntArray
public int[] toIntArray()
Returns array with primitive types- Specified by:
toIntArrayin interfaceIntSet
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
add
public boolean add(int element)
Adds the specified element to this set.
-
remove
public boolean remove(int element)
Removes the specified element from this set.
-
add
public boolean add(Integer integer)
-
remove
public boolean remove(Object o)
-
addAll
public boolean addAll(@NotNull @NotNull Collection<? extends Integer> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull Collection<?> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull Collection<?> c)
-
clear
public void clear()
-
removeIf
public boolean removeIf(Predicate<? super Integer> filter)
- Specified by:
removeIfin interfaceCollection<Integer>
-
spliterator
public Spliterator<Integer> spliterator()
- Specified by:
spliteratorin interfaceCollection<Integer>- Specified by:
spliteratorin interfaceIterable<Integer>- Specified by:
spliteratorin interfaceSet<Integer>
-
stream
public Stream<Integer> stream()
- Specified by:
streamin interfaceCollection<Integer>
-
parallelStream
public Stream<Integer> parallelStream()
- Specified by:
parallelStreamin interfaceCollection<Integer>
-
-