public final class LinkedHashSetEx<V> extends AbstractSet<V> implements LinkedSet<V>
| Constructor and Description |
|---|
LinkedHashSetEx() |
LinkedHashSetEx(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V e) |
boolean |
contains(Object o) |
V |
getLastValue() |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
V |
pollLastValue() |
int |
size() |
equals, hashCode, removeAlladdAll, clear, containsAll, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, equals, hashCode, remove, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic LinkedHashSetEx()
public LinkedHashSetEx(int capacity)
public int size()
size in interface Collection<V>size in interface Set<V>size in class AbstractCollection<V>@Nullable public V getLastValue()
getLastValue in interface LinkedSet<V>@Nullable public V pollLastValue()
pollLastValue in interface LinkedSet<V>public boolean add(V e)
add in interface Collection<V>add in interface Set<V>add in class AbstractCollection<V>public boolean contains(Object o)
contains in interface Collection<V>contains in interface Set<V>contains in class AbstractCollection<V>public boolean isEmpty()
isEmpty in interface Collection<V>isEmpty in interface Set<V>isEmpty in class AbstractCollection<V>Copyright © 2018 SPF4J. All rights reserved.