public class SingleItemSet<T> extends Object implements Set<T>
| Modifier and Type | Class and Description |
|---|---|
class |
SingleItemSet.SingleItemIterator |
| Constructor and Description |
|---|
SingleItemSet(T instance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic SingleItemSet(T instance)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T1> T1[] toArray(T1[] a)
public boolean add(T t)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface Set<T>public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.