org.kinsources.kiwa.utils
Class WeightedStrings

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

public class WeightedStrings
extends java.lang.Object
implements java.lang.Iterable<WeightedString>

The Collections class represents an account collection.

Author:
christian.momon@devinsy.fr

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

Constructor Detail

WeightedStrings

public WeightedStrings()

WeightedStrings

public WeightedStrings(int initialCapacity)
Method Detail

add

public WeightedString add(WeightedString source)

addAll

public void addAll(WeightedStrings source)
Parameters:
source -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

remove

public void remove(WeightedString account)
Parameters:
id -

reverse

public WeightedStrings reverse()
Returns:

size

public int size()
Returns:

sortByName

public WeightedStrings sortByName()
Returns:

sortByWeight

public WeightedStrings sortByWeight()
Returns: