public static class CollectionUtils.SetBuilder<E> extends Object implements Set<E>
Constructor and Description |
---|
CollectionUtils.SetBuilder(Set<E> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> es) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
CollectionUtils.SetBuilder<E> |
e(E e) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
public CollectionUtils.SetBuilder<E> e(E e)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] ts)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> objects)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean addAll(Collection<? extends E> es)
public boolean retainAll(Collection<?> objects)
public boolean removeAll(Collection<?> objects)
public void clear()
public boolean equals(Object o)