irc
Class ListHandler

java.lang.Object
  |
  +--irc.ListHandler

public class ListHandler
extends java.lang.Object

Handling for unbound list of items.


Constructor Summary
ListHandler(java.lang.String list)
          Create a new list of items.
 
Method Summary
 boolean inList(java.lang.String item)
          Test wether the given item is in the list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListHandler

public ListHandler(java.lang.String list)
Create a new list of items.

Parameters:
list - item list. Syntax is : "" or "none+item1+item2+item3+..." or "all-item1-item2-item3-..." If list is empty, it is equivalent to "all". Items containing + or - characters can be used by replacing them by \+ or \-.
Method Detail

inList

public boolean inList(java.lang.String item)
Test wether the given item is in the list.

Parameters:
item - item to check.
Returns:
true if item is in the list, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object