See on Tõrva Gümnaasiumi vana veebilehe arhiiv. Uus veebileht: https://torva.edu.ee/

ListHandler (PJIRC project)

Lisamaterjalide loend

Algne fail: vana_veeb/pjirc/doc/javadoc/irc/ListHandler.html.

========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.