public class ArraySet<E> extends AbstractSet<E>
| Constructor and Description |
|---|
ArraySet(int cap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E objet) |
boolean |
contains(Object o) |
E |
get(int index) |
E |
getAndRemove(int index) |
E[] |
getElements() |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
E |
remove(int index) |
boolean |
remove(Object o) |
void |
reset() |
void |
set(int index,
E e) |
int |
size() |
String |
toString() |
equals, hashCode, removeAlladdAll, clear, containsAll, isEmpty, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic E[] getElements()
public E get(int index)
public void set(int index,
E e)
public E getAndRemove(int index)
public boolean add(E objet)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public int indexOf(Object o)
public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>remove in class AbstractCollection<E>public E remove(int index)
public void reset()
public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public String toString()
toString in class AbstractCollection<E>Copyright © 2020 Voovan. All rights reserved.