public static class IntSets.Singleton extends AbstractIntSet implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific set.
| Modifier and Type | Field and Description |
|---|---|
protected int |
element |
| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(int element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.Integer> c) |
boolean |
addAll(it.unimi.dsi.fastutil.ints.IntCollection c) |
java.lang.Object |
clone() |
boolean |
contains(int k) |
void |
forEach(java.util.function.Consumer<? super java.lang.Integer> action)
Deprecated.
|
void |
forEach(java.util.function.IntConsumer action) |
it.unimi.dsi.fastutil.ints.IntListIterator |
iterator()
Returns a type-specific iterator on the elements of this set.
|
boolean |
remove(int k)
Removes an element from this set.
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(it.unimi.dsi.fastutil.ints.IntCollection c) |
boolean |
removeIf(java.util.function.IntPredicate filter) |
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(it.unimi.dsi.fastutil.ints.IntCollection c) |
int |
size() |
it.unimi.dsi.fastutil.ints.IntSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this set.
|
java.lang.Object[] |
toArray()
Deprecated.
|
int[] |
toIntArray() |
equals, hashCode, remadd, add, contains, containsAll, containsAll, forEach, remove, removeIf, toArray, toIntArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, of, of, of, of, of, removepublic boolean contains(int k)
contains in interface it.unimi.dsi.fastutil.ints.IntCollectioncontains in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean remove(int k)
AbstractIntSetrem() method
implemented by type-specific abstract Collection superclass.remove in interface IntSetremove in class AbstractIntSetCollection.remove(Object)public it.unimi.dsi.fastutil.ints.IntListIterator iterator()
IntSetiterator in interface it.unimi.dsi.fastutil.ints.IntCollectioniterator in interface it.unimi.dsi.fastutil.ints.IntIterableiterator in interface IntSetiterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.util.Set<java.lang.Integer>iterator in class AbstractIntSetpublic it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()
IntSetSet spliterators must report at least Spliterator.DISTINCT.
See Set.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface it.unimi.dsi.fastutil.ints.IntCollectionspliterator in interface it.unimi.dsi.fastutil.ints.IntIterablespliterator in interface IntSetspliterator in interface java.lang.Iterable<java.lang.Integer>spliterator in interface java.util.Collection<java.lang.Integer>spliterator in interface java.util.Set<java.lang.Integer>public int size()
size in interface java.util.Collection<java.lang.Integer>size in interface java.util.Set<java.lang.Integer>size in class java.util.AbstractCollection<java.lang.Integer>public int[] toIntArray()
toIntArray in interface it.unimi.dsi.fastutil.ints.IntCollectiontoIntArray in class it.unimi.dsi.fastutil.ints.AbstractIntCollection@Deprecated public void forEach(java.util.function.Consumer<? super java.lang.Integer> action)
forEach in interface it.unimi.dsi.fastutil.ints.IntIterableforEach in interface java.lang.Iterable<java.lang.Integer>public boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
addAll in interface java.util.Collection<java.lang.Integer>addAll in interface java.util.Set<java.lang.Integer>addAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Integer>removeAll in interface java.util.Set<java.lang.Integer>removeAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Integer>retainAll in interface java.util.Set<java.lang.Integer>retainAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollection@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
removeIf in interface it.unimi.dsi.fastutil.ints.IntCollectionremoveIf in interface java.util.Collection<java.lang.Integer>public void forEach(java.util.function.IntConsumer action)
forEach in interface it.unimi.dsi.fastutil.ints.IntIterablepublic boolean addAll(it.unimi.dsi.fastutil.ints.IntCollection c)
addAll in interface it.unimi.dsi.fastutil.ints.IntCollectionaddAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean removeAll(it.unimi.dsi.fastutil.ints.IntCollection c)
removeAll in interface it.unimi.dsi.fastutil.ints.IntCollectionremoveAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean retainAll(it.unimi.dsi.fastutil.ints.IntCollection c)
retainAll in interface it.unimi.dsi.fastutil.ints.IntCollectionretainAll in class it.unimi.dsi.fastutil.ints.AbstractIntCollectionpublic boolean removeIf(java.util.function.IntPredicate filter)
removeIf in interface it.unimi.dsi.fastutil.ints.IntCollection@Deprecated public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Integer>toArray in interface java.util.Set<java.lang.Integer>toArray in class java.util.AbstractCollection<java.lang.Integer>public java.lang.Object clone()
clone in class java.lang.Object