org.xmloperator.lambda.net.model
Interface OperatorList


public interface OperatorList

List of Operators.


Method Summary
 void add(Operator operator)
          Add an Operator to the list.
 void clear()
          Clear the content of this list.
 Operator get(int index)
          Return the Operator at a given index in the list.
 int getSize()
          Return the size of the list.
 boolean isEmpty()
          Returns true if this list is empty.
 boolean remove(Operator operator)
          Remove an Operator from this list.
 

Method Detail

getSize

public int getSize()
Return the size of the list.

Returns:
the size of the list.

isEmpty

public boolean isEmpty()
Returns true if this list is empty.

Returns:
true if this list is empty.

clear

public void clear()
Clear the content of this list.


get

public Operator get(int index)
Return the Operator at a given index in the list.

Parameters:
index - an index in the list, between 0 and size - 1.
Returns:
the Operator at the index position.
Throws:
java.lang.IndexOutOfBoundsException - if index < 0 or index >= size.

add

public void add(Operator operator)
Add an Operator to the list.

Throws:
java.lang.IllegalArgumentException - if the given Operator is null.

remove

public boolean remove(Operator operator)
Remove an Operator from this list.

Parameters:
operator - an Operator.
Returns:
true if the Operator has been effectively removed.