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, removeAll
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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 © 2017. All rights reserved.