Java Code Examples for org.jboss.netty.channel.Channel.equals()

The following are Jave code examples for showing how to use equals() of the org.jboss.netty.channel.Channel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Elasticsearch   File: NettyTransport.java   Source Code and License Vote up 5 votes
public boolean hasChannel(Channel channel) {
    for (Channel channel1 : allChannels) {
        if (channel.equals(channel1)) {
            return true;
        }
    }
    return false;
}