org.kinsources.kiwa.kidarep
Class Collaborators

java.lang.Object
  extended by org.kinsources.kiwa.kidarep.Collaborators
All Implemented Interfaces:
java.lang.Iterable<Collaborator>

public class Collaborators
extends java.lang.Object
implements java.lang.Iterable<Collaborator>

The Collaborators class represents a dataset collaborator.

Author:
christian.momon@devinsy.fr

Constructor Summary
Collaborators()
           
Collaborators(int initialCapacity)
           
 
Method Summary
 Collaborator add(Collaborator source)
           
 void addAll(Collaborators source)
           
 void clear()
           
 Collaborators copy()
          This methods returns a shallow copy of the current object.
 Collaborator getByAccountId(long id)
           
 Collaborator getByAccountId(java.lang.String id)
           
 Collaborator getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<Collaborator> iterator()
           
 void remove(Collaborator account)
           
 Collaborators reverse()
           
 int size()
           
 Collaborators sortByFullName()
           
 Collaborators sortById()
           
 Collaborators sortByLastName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collaborators

public Collaborators()

Collaborators

public Collaborators(int initialCapacity)
Method Detail

add

public Collaborator add(Collaborator source)

addAll

public void addAll(Collaborators source)
Parameters:
source -

clear

public void clear()

copy

public Collaborators copy()
This methods returns a shallow copy of the current object.

Returns:
a shallow copy of the current object.

getByAccountId

public Collaborator getByAccountId(long id)
Parameters:
id -
Returns:

getByAccountId

public Collaborator getByAccountId(java.lang.String id)
Parameters:
id -
Returns:

getByIndex

public Collaborator getByIndex(int index)
Parameters:
id -
Returns:

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

public java.util.Iterator<Collaborator> iterator()
Specified by:
iterator in interface java.lang.Iterable<Collaborator>
Returns:

remove

public void remove(Collaborator account)
Parameters:
id -

reverse

public Collaborators reverse()
Returns:

size

public int size()
Returns:

sortByFullName

public Collaborators sortByFullName()
Returns:

sortById

public Collaborators sortById()
Returns:

sortByLastName

public Collaborators sortByLastName()
Returns: