Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>public class LinkedSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, Serializable
Set interface,
with predictable iteration order.
Resembles LinkedHashSet from JDK 1.4+, but is backed by a generic
LinkedMap, rather than implementing a particular algoritm.
LinkedMap,
Serialized Form| Constructor | Description |
|---|---|
LinkedSet() |
|
LinkedSet(Collection<E> pCollection) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(E pValue) |
|
boolean |
addAll(Collection<? extends E> pCollection) |
|
Iterator<E> |
iterator() |
|
int |
size() |
clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringequals, hashCode, removeAllparallelStream, removeIf, streampublic LinkedSet()
public LinkedSet(Collection<E> pCollection)
public boolean addAll(Collection<? extends E> pCollection)
addAll in interface Collection<E>addAll in interface Set<E>addAll in class AbstractCollection<E>public boolean add(E pValue)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>Copyright © 2018. All rights reserved.