public class DefaultChannelGroup extends AbstractSet<SocketChannel> implements ChannelGroup
| 构造器和说明 |
|---|
DefaultChannelGroup()
构造函数
|
DefaultChannelGroup(String name)
构造函数
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(SocketChannel socketChannel) |
void |
clear() |
int |
compareTo(ChannelGroup o) |
boolean |
contains(Object o) |
SocketChannel |
find(String id)
查找通道
|
int |
hashCode() |
boolean |
isEmpty() |
Iterator<SocketChannel> |
iterator() |
String |
name()
名称
|
boolean |
remove(Object o) |
int |
size() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
equals, removeAlladdAll, containsAll, retainAll, toArrayaddAll, containsAll, equals, removeAll, retainAll, spliterator, toArrayparallelStream, removeIf, streampublic DefaultChannelGroup()
public DefaultChannelGroup(String name)
name - public String name()
ChannelGroupname 在接口中 ChannelGrouppublic SocketChannel find(String id)
ChannelGroupfind 在接口中 ChannelGrouppublic boolean isEmpty()
isEmpty 在接口中 Collection<SocketChannel>isEmpty 在接口中 Set<SocketChannel>isEmpty 在类中 AbstractCollection<SocketChannel>public boolean contains(Object o)
contains 在接口中 Collection<SocketChannel>contains 在接口中 Set<SocketChannel>contains 在类中 AbstractCollection<SocketChannel>public boolean add(SocketChannel socketChannel)
add 在接口中 Collection<SocketChannel>add 在接口中 Set<SocketChannel>add 在类中 AbstractCollection<SocketChannel>public boolean remove(Object o)
remove 在接口中 Collection<SocketChannel>remove 在接口中 Set<SocketChannel>remove 在类中 AbstractCollection<SocketChannel>public void clear()
clear 在接口中 Collection<SocketChannel>clear 在接口中 Set<SocketChannel>clear 在类中 AbstractCollection<SocketChannel>public <T> T[] toArray(T[] a)
toArray 在接口中 Collection<SocketChannel>toArray 在接口中 Set<SocketChannel>toArray 在类中 AbstractCollection<SocketChannel>public int hashCode()
hashCode 在接口中 Collection<SocketChannel>hashCode 在接口中 Set<SocketChannel>hashCode 在类中 AbstractSet<SocketChannel>public int compareTo(ChannelGroup o)
compareTo 在接口中 Comparable<ChannelGroup>public Iterator<SocketChannel> iterator()
iterator 在接口中 Iterable<SocketChannel>iterator 在接口中 Collection<SocketChannel>iterator 在接口中 Set<SocketChannel>iterator 在类中 AbstractCollection<SocketChannel>public int size()
size 在接口中 Collection<SocketChannel>size 在接口中 Set<SocketChannel>size 在类中 AbstractCollection<SocketChannel>public String toString()
toString 在类中 AbstractCollection<SocketChannel>Copyright © 2021. All rights reserved.