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