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