org.kinsources.kiwa.kidarep
Class Collections

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

public class Collections
extends java.lang.Object
implements java.lang.Iterable<Collection>

The Collections class represents an account collection.

Author:
christian.momon@devinsy.fr

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

Constructor Detail

Collections

public Collections()

Collections

public Collections(int initialCapacity)
Method Detail

add

public Collection add(Collection source)

addAll

public void addAll(Collections source)
Parameters:
source -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

findCollectionsWith

public Collections findCollectionsWith(Dataset criteria)
Parameters:
criteria -
Returns:

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

lastId

public long lastId()
Returns:

remove

public void remove(Collection account)
Parameters:
id -

reverse

public Collections reverse()
Returns:

size

public int size()
Returns:

sortById

public Collections sortById()
Returns: