org.kinsources.kiwa.utils
Class WeightedDatasetList

java.lang.Object
  extended by org.kinsources.kiwa.utils.WeightedDatasetList
All Implemented Interfaces:
java.lang.Iterable<WeightedDataset>

public class WeightedDatasetList
extends java.lang.Object
implements java.lang.Iterable<WeightedDataset>

The Collections class represents an account collection.

Author:
christian.momon@devinsy.fr

Constructor Summary
WeightedDatasetList()
           
WeightedDatasetList(int initialCapacity)
           
 
Method Summary
 WeightedDataset add(WeightedDataset source)
           
 void addAll(WeightedDatasetList source)
           
 void clear()
           
 WeightedDatasetList copy()
          This methods returns a shallow copy of the current object.
 WeightedDataset getByIndex(int index)
           
 boolean isEmpty()
           
 boolean isNotEmpty()
           
 java.util.Iterator<WeightedDataset> iterator()
           
 void remove(WeightedDataset account)
           
 WeightedDatasetList reverse()
           
 int size()
           
 WeightedDatasetList sort(WeightedDatasetComparator.Criteria criteria)
           
 WeightedDatasetList sortById()
           
 WeightedDatasetList sortByName()
           
 WeightedDatasetList sortByWeightDouble()
           
 WeightedDatasetList sortByWeightInteger()
           
 WeightedDatasetList sortByWeightString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedDatasetList

public WeightedDatasetList()

WeightedDatasetList

public WeightedDatasetList(int initialCapacity)
Method Detail

add

public WeightedDataset add(WeightedDataset source)

addAll

public void addAll(WeightedDatasetList source)
Parameters:
source -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

remove

public void remove(WeightedDataset account)
Parameters:
id -

reverse

public WeightedDatasetList reverse()
Returns:

size

public int size()
Returns:

sort

public WeightedDatasetList sort(WeightedDatasetComparator.Criteria criteria)
Returns:

sortById

public WeightedDatasetList sortById()
Returns:

sortByName

public WeightedDatasetList sortByName()
Returns:

sortByWeightDouble

public WeightedDatasetList sortByWeightDouble()
Returns:

sortByWeightInteger

public WeightedDatasetList sortByWeightInteger()
Returns:

sortByWeightString

public WeightedDatasetList sortByWeightString()
Returns: