public class VanillaSelectionKeySet extends AbstractSet<SelectionKey>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(SelectionKey key) |
int |
capacity()
Capacity of the current set
|
void |
clear()
Reset for next iteration.
|
boolean |
contains(Object o)
It seems that on MacOSX this method is used to check if a SelectionKey has
already been added to the list of availables keys.
|
@NotNull Iterator<SelectionKey> |
iterator() |
SelectionKey[] |
keys()
Return selected keys.
|
boolean |
remove(Object o) |
int |
size() |
equals, hashCode, removeAlladdAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean add(SelectionKey key)
add in interface Collection<SelectionKey>add in interface Set<SelectionKey>add in class AbstractCollection<SelectionKey>public void clear()
clear in interface Collection<SelectionKey>clear in interface Set<SelectionKey>clear in class AbstractCollection<SelectionKey>public SelectionKey[] keys()
public int capacity()
public int size()
size in interface Collection<SelectionKey>size in interface Set<SelectionKey>size in class AbstractCollection<SelectionKey>public boolean remove(Object o)
remove in interface Collection<SelectionKey>remove in interface Set<SelectionKey>remove in class AbstractCollection<SelectionKey>public boolean contains(Object o)
contains in interface Collection<SelectionKey>contains in interface Set<SelectionKey>contains in class AbstractCollection<SelectionKey>@NotNull public @NotNull Iterator<SelectionKey> iterator()
iterator in interface Iterable<SelectionKey>iterator in interface Collection<SelectionKey>iterator in interface Set<SelectionKey>iterator in class AbstractCollection<SelectionKey>Copyright © 2021. All rights reserved.