org.kinsources.kiwa.kidarep
Class Collections
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Collections
public Collections()
Collections
public Collections(int initialCapacity)
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: