ElementType - type of the elements within the set@NotThreadSafe public class LazySet<ElementType> extends Object implements Set<ElementType>, Serializable
| Constructor and Description |
|---|
LazySet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ElementType element) |
boolean |
addAll(Collection<? extends ElementType> collection) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection<?> collection) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<ElementType> |
iterator() |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] type) |
String |
toString() |
public boolean add(ElementType element)
add in interface Collection<ElementType>add in interface Set<ElementType>public boolean addAll(Collection<? extends ElementType> collection)
addAll in interface Collection<ElementType>addAll in interface Set<ElementType>public void clear()
clear in interface Collection<ElementType>clear in interface Set<ElementType>public boolean contains(Object element)
contains in interface Collection<ElementType>contains in interface Set<ElementType>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<ElementType>containsAll in interface Set<ElementType>public boolean isEmpty()
isEmpty in interface Collection<ElementType>isEmpty in interface Set<ElementType>public Iterator<ElementType> iterator()
iterator in interface Iterable<ElementType>iterator in interface Collection<ElementType>iterator in interface Set<ElementType>public boolean remove(Object element)
remove in interface Collection<ElementType>remove in interface Set<ElementType>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<ElementType>removeAll in interface Set<ElementType>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<ElementType>retainAll in interface Set<ElementType>public int size()
size in interface Collection<ElementType>size in interface Set<ElementType>public Object[] toArray()
toArray in interface Collection<ElementType>toArray in interface Set<ElementType>public <T> T[] toArray(T[] type)
toArray in interface Collection<ElementType>toArray in interface Set<ElementType>public int hashCode()
hashCode in interface Collection<ElementType>hashCode in interface Set<ElementType>hashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collection<ElementType>equals in interface Set<ElementType>equals in class ObjectCopyright © 2018 JBoss by Red Hat. All rights reserved.