|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.indy.CommandHandlers
A specialized collection class for IdCommnandHandler
This class is not thread safe without external sync.
Constructor Summary | |
CommandHandlers(TCPServer server)
Constructs a new IdCommandHandlers collection. |
Method Summary | |
void |
add(CommandHandler ch)
Adds an IdCommandHandler to this collection. |
void |
add(CommandHandler ch,
int index)
Adds an IdCommandHandler to this collection at the specified index. |
void |
add(int index,
java.lang.Object element)
DOCUMENT ME! |
boolean |
add(java.lang.Object o)
DOCUMENT ME! |
boolean |
addAll(java.util.Collection c)
DOCUMENT ME! |
boolean |
addAll(int index,
java.util.Collection c)
DOCUMENT ME! |
void |
clear()
DOCUMENT ME! |
boolean |
contains(java.lang.Object o)
DOCUMENT ME! |
boolean |
containsAll(java.util.Collection c)
DOCUMENT ME! |
boolean |
equals(java.lang.Object o)
DOCUMENT ME! |
java.lang.Object |
get(int index)
DOCUMENT ME! |
CommandHandler |
getCommandHandler(int index)
Returns the IdCommandHandler instance at index |
TCPServer |
getServer()
Returns the IdTCPServer that owns this collection. |
int |
indexOf(java.lang.Object o)
DOCUMENT ME! |
boolean |
isEmpty()
DOCUMENT ME! |
java.util.Iterator |
iterator()
DOCUMENT ME! |
int |
lastIndexOf(java.lang.Object o)
DOCUMENT ME! |
java.util.ListIterator |
listIterator()
DOCUMENT ME! |
java.util.ListIterator |
listIterator(int index)
DOCUMENT ME! |
java.lang.Object |
remove(int index)
DOCUMENT ME! |
boolean |
remove(java.lang.Object o)
DOCUMENT ME! |
boolean |
removeAll(java.util.Collection c)
DOCUMENT ME! |
boolean |
retainAll(java.util.Collection c)
DOCUMENT ME! |
java.lang.Object |
set(int index,
java.lang.Object element)
DOCUMENT ME! |
int |
size()
Returns the number of elements in this collection. |
java.util.List |
subList(int fromIndex,
int toIndex)
DOCUMENT ME! |
java.lang.Object[] |
toArray()
DOCUMENT ME! |
java.lang.Object[] |
toArray(java.lang.Object[] a)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
hashCode |
Constructor Detail |
public CommandHandlers(TCPServer server)
server
- The server instance that owns this collection.Method Detail |
public boolean isEmpty()
isEmpty
in interface java.util.List
public CommandHandler getCommandHandler(int index)
IdCommandHandler
instance at index
index
- The index of the reuiqred handler.index
java.lang.IndexOutOfBoundsException
- if index
is invalid.public TCPServer getServer()
IdTCPServer
that owns this collection.public void add(CommandHandler ch)
IdCommandHandler
to this collection.ch
- The IdCommandHandler to add.public void add(CommandHandler ch, int index)
IdCommandHandler
to this collection at the specified index.ch
- The IdCommandHandler to add.index
- The index to add at.java.lang.IndexOutOfBoundsException
- If index is invalid.public int size()
size
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.List
o
- DOCUMENT ME!public java.util.Iterator iterator()
iterator
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.List
a
- DOCUMENT ME!public boolean add(java.lang.Object o)
add
in interface java.util.List
o
- DOCUMENT ME!public boolean remove(java.lang.Object o)
remove
in interface java.util.List
o
- DOCUMENT ME!public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.List
c
- DOCUMENT ME!public boolean addAll(java.util.Collection c)
addAll
in interface java.util.List
c
- DOCUMENT ME!public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
index
- DOCUMENT ME!c
- DOCUMENT ME!public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.List
c
- DOCUMENT ME!public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.List
c
- DOCUMENT ME!public void clear()
clear
in interface java.util.List
public boolean equals(java.lang.Object o)
equals
in interface java.util.List
equals
in class java.lang.Object
o
- DOCUMENT ME!public java.lang.Object get(int index)
get
in interface java.util.List
index
- DOCUMENT ME!public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
index
- DOCUMENT ME!element
- DOCUMENT ME!public void add(int index, java.lang.Object element)
add
in interface java.util.List
index
- DOCUMENT ME!element
- DOCUMENT ME!public java.lang.Object remove(int index)
remove
in interface java.util.List
index
- DOCUMENT ME!public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
o
- DOCUMENT ME!public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
o
- DOCUMENT ME!public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
index
- DOCUMENT ME!public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
fromIndex
- DOCUMENT ME!toIndex
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |