コード例 #1
0
ファイル: ClientState.java プロジェクト: jebl01/sIRC
 /**
  * Retrieves a shared channel object from the channel list.
  *
  * @param channel A channel object representing this channel.
  * @return The channel, or null if this channel doesn't exist. (The local user is not in that
  *     channel)
  * @see #getChannel(String)
  */
 protected Channel getChannel(final Channel channel) {
   return this.getChannel(channel.getName());
 }
コード例 #2
0
ファイル: ClientState.java プロジェクト: jebl01/sIRC
 /**
  * Adds a channel to the channel list.
  *
  * @param channel The channel to add.
  */
 protected void addChannel(final Channel channel) {
   if (!this.channels.containsKey(channel.getName())) {
     this.channels.put(channel.getName(), channel);
   }
 }