public class ArraySet<T> extends AbstractSet<T>
| Modifier and Type | Class and Description |
|---|---|
class |
ArraySet.ArraySetIterator |
| Constructor and Description |
|---|
ArraySet() |
ArraySet(ArraySet<T> other) |
ArraySet(Collection<T> other) |
ArraySet(int numElems_,
boolean checkDupes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T obj_) |
boolean |
addAll(ArraySet<T> other) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object obj_) |
static <T> ArraySet<T> |
empty() |
void |
forall(ObjectVisitor<T> visitor_) |
T |
get(int i) |
boolean |
intersects(ArraySet<T> other) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(int ind) |
boolean |
remove(Object obj_) |
int |
size() |
Object[] |
toArray() |
<U> U[] |
toArray(U[] a) |
String |
toString() |
equals, hashCode, removeAllcontainsAll, retainAllclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, retainAll, spliteratorparallelStream, removeIf, streampublic ArraySet(int numElems_,
boolean checkDupes)
public ArraySet()
public ArraySet(Collection<T> other)
public static final <T> ArraySet<T> empty()
public boolean add(T obj_)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean contains(Object obj_)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public void forall(ObjectVisitor<T> visitor_)
public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public T get(int i)
public boolean remove(Object obj_)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean remove(int ind)
ind - public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface Set<T>isEmpty in class AbstractCollection<T>public String toString()
toString in class AbstractCollection<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractCollection<T>public <U> U[] toArray(U[] a)
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>Copyright © 2021 Soot OSS. All rights reserved.