de.janrufmonitor.framework
Interface ICallList


public interface ICallList

This interface must be implemented by a call list object, which should be used in the framework.

Author:
Thilo Brandt

Method Summary
 void add(ICall call)
          Add a call to the list.
 void add(ICallList callList)
          Add a call list to the list.
 void clear()
          Clears the list, means removes all elements.
 boolean contains(ICall call)
          Checks if a call object is in this list.
 ICall get(int position)
          Gets a call with a certain position from the list.
 void remove(ICall call)
          Removes a call from the list.
 int size()
          Gets the size of the list.
 void sort()
          Sorts the list with a default sort order.
 void sort(int order, boolean direction)
          Sorts the list with a defined sort order.
 Object[] toArray()
          Returns an object array of this list.
 

Method Detail

contains

boolean contains(ICall call)
Checks if a call object is in this list.

Parameters:
call - call to be checked in this list.
Returns:
true if call is in the list, if not false.

remove

void remove(ICall call)
Removes a call from the list.

Parameters:
call - call to be removed from the list.

add

void add(ICall call)
Add a call to the list.

Parameters:
call - call to be added to the list.

add

void add(ICallList callList)
Add a call list to the list.

Parameters:
callList - call list to be added to the list.

get

ICall get(int position)
Gets a call with a certain position from the list.

Parameters:
position - position of the call.
Returns:
a call object or null if none was found.

size

int size()
Gets the size of the list.

Returns:
size of the list.

sort

void sort()
Sorts the list with a default sort order.


sort

void sort(int order,
          boolean direction)
Sorts the list with a defined sort order.

Parameters:
order - the sort order.
direction - the direction, true ascending, false descending.

clear

void clear()
Clears the list, means removes all elements.


toArray

Object[] toArray()
Returns an object array of this list.

Returns:
an object array of the list


Copyright © 2010 by Thilo Brandt. All Rights Reserved.