public static class ObjectSets.SynchronizedSet<K> extends java.lang.Object implements ObjectSet<K>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
add(K k) |
boolean |
addAll(java.util.Collection<? extends K> c) |
void |
clear() |
boolean |
contains(java.lang.Object k) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super K> action) |
int |
hashCode() |
boolean |
isEmpty() |
ObjectIterator<K> |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
java.util.stream.Stream<K> |
parallelStream() |
boolean |
remove(java.lang.Object k) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super K> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
ObjectSpliterator<K> |
spliterator()
Returns a type-specific spliterator on the elements of this collection.
|
java.util.stream.Stream<K> |
stream() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
iterator, of, of, of, of, of, spliterator
public boolean remove(java.lang.Object k)
public boolean add(K k)
add
in interface java.util.Collection<K>
public boolean contains(java.lang.Object k)
contains
in interface java.util.Collection<K>
public int size()
size
in interface java.util.Collection<K>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<K>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<K>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<K>
public ObjectIterator<K> iterator()
ObjectCollection
iterator
in interface ObjectCollection<K>
iterator
in interface ObjectIterable<K>
iterator
in interface java.lang.Iterable<K>
iterator
in interface java.util.Collection<K>
Iterable.iterator()
public ObjectSpliterator<K> spliterator()
ObjectCollection
See Collection.spliterator()
for more documentation on the requirements
of the returned spliterator.
spliterator
in interface ObjectCollection<K>
spliterator
in interface ObjectIterable<K>
spliterator
in interface java.lang.Iterable<K>
spliterator
in interface java.util.Collection<K>
public java.util.stream.Stream<K> stream()
stream
in interface java.util.Collection<K>
public java.util.stream.Stream<K> parallelStream()
parallelStream
in interface java.util.Collection<K>
public void forEach(java.util.function.Consumer<? super K> action)
forEach
in interface java.lang.Iterable<K>
public boolean addAll(java.util.Collection<? extends K> c)
addAll
in interface java.util.Collection<K>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<K>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<K>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<K>
public boolean removeIf(java.util.function.Predicate<? super K> filter)
removeIf
in interface java.util.Collection<K>
public void clear()
clear
in interface java.util.Collection<K>
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<K>
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<K>
equals
in class java.lang.Object