public final class BulkSet<S> extends AbstractSet<S> implements Set<S>, Serializable
| Constructor and Description |
|---|
BulkSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(S s) |
boolean |
add(S s,
long bulk) |
boolean |
addAll(Collection<? extends S> collection) |
Map<S,Long> |
asBulk() |
void |
clear() |
boolean |
contains(Object s) |
boolean |
equals(Object object) |
void |
forEach(BiConsumer<S,Long> consumer) |
long |
get(S s) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<S> |
iterator() |
long |
longSize() |
boolean |
remove(Object s) |
boolean |
removeAll(Collection<?> collection) |
int |
size() |
Spliterator<S> |
spliterator() |
String |
toString() |
int |
uniqueSize() |
containsAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic int size()
size in interface Collection<S>size in interface Set<S>size in class AbstractCollection<S>public int uniqueSize()
public long longSize()
public boolean isEmpty()
isEmpty in interface Collection<S>isEmpty in interface Set<S>isEmpty in class AbstractCollection<S>public boolean contains(Object s)
contains in interface Collection<S>contains in interface Set<S>contains in class AbstractCollection<S>public boolean add(S s)
add in interface Collection<S>add in interface Set<S>add in class AbstractCollection<S>public boolean addAll(Collection<? extends S> collection)
addAll in interface Collection<S>addAll in interface Set<S>addAll in class AbstractCollection<S>public void forEach(BiConsumer<S,Long> consumer)
public boolean add(S s, long bulk)
public long get(S s)
public boolean remove(Object s)
remove in interface Collection<S>remove in interface Set<S>remove in class AbstractCollection<S>public void clear()
clear in interface Collection<S>clear in interface Set<S>clear in class AbstractCollection<S>public Spliterator<S> spliterator()
spliterator in interface Iterable<S>spliterator in interface Collection<S>spliterator in interface Set<S>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<S>removeAll in interface Set<S>removeAll in class AbstractSet<S>public int hashCode()
hashCode in interface Collection<S>hashCode in interface Set<S>hashCode in class AbstractSet<S>public boolean equals(Object object)
equals in interface Collection<S>equals in interface Set<S>equals in class AbstractSet<S>public String toString()
toString in class AbstractCollection<S>Copyright © 2013–2016 Apache Software Foundation. All rights reserved.