/** * Adds a channel listener to the channel.<br> * Channel listeners are uniquely identified using the equals(Object) method * @param channelListener ChannelListener */ @Override public void addChannelListener(ChannelListener channelListener) { if (!this.channelListeners.contains(channelListener) ) { this.channelListeners.add(channelListener); } else { throw new IllegalArgumentException("Listener already exists:"+channelListener+"["+channelListener.getClass().getName()+"]"); } }
/** * Adds a channel listener to the channel.<br> * Channel listeners are uniquely identified using the equals(Object) method * * @param channelListener * ChannelListener */ @Override public void addChannelListener(ChannelListener channelListener) { if (!this.channelListeners.contains(channelListener)) { this.channelListeners.add(channelListener); } else { throw new IllegalArgumentException( "Listener already exists:" + channelListener + "[" + channelListener.getClass().getName() + "]"); } }
/** * * Removes a channel listener from the channel.<br> * Channel listeners are uniquely identified using the equals(Object) method * @param channelListener ChannelListener */ @Override public void removeChannelListener(ChannelListener channelListener) { channelListeners.remove(channelListener); }
/** * * Removes a channel listener from the channel.<br> * Channel listeners are uniquely identified using the equals(Object) method * * @param channelListener * ChannelListener */ @Override public void removeChannelListener(ChannelListener channelListener) { channelListeners.remove(channelListener); }