org.kinsources.kiwa.utils
Class BiWeightedStrings

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

public class BiWeightedStrings
extends java.lang.Object
implements java.lang.Iterable<BiWeightedString>

The Collections class represents an account collection.

Author:
christian.momon@devinsy.fr

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

Constructor Detail

BiWeightedStrings

public BiWeightedStrings()

BiWeightedStrings

public BiWeightedStrings(int initialCapacity)
Method Detail

add

public BiWeightedString add(BiWeightedString source)

addAll

public void addAll(BiWeightedStrings source)
Parameters:
source -

clear

public void clear()

copy

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

Returns:
a shallow copy of the current object.

getByIndex

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

isEmpty

public boolean isEmpty()
Returns:

isNotEmpty

public boolean isNotEmpty()
Returns:

iterator

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

remove

public void remove(BiWeightedString account)
Parameters:
id -

reverse

public BiWeightedStrings reverse()
Returns:

size

public int size()
Returns:

sortByName

public BiWeightedStrings sortByName()
Returns:

sortByWeight1

public BiWeightedStrings sortByWeight1()
Returns:

sortByWeight2

public BiWeightedStrings sortByWeight2()
Returns: