public class BiWeightedStrings extends java.lang.Object implements java.lang.Iterable<BiWeightedString>
Collections
class represents an account collection.Constructor and Description |
---|
BiWeightedStrings() |
BiWeightedStrings(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
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() |
public BiWeightedStrings()
public BiWeightedStrings(int initialCapacity)
public BiWeightedString add(BiWeightedString source)
public void addAll(BiWeightedStrings source)
source
- public void clear()
public BiWeightedStrings copy()
public BiWeightedString getByIndex(int index)
id
- public boolean isEmpty()
public boolean isNotEmpty()
public java.util.Iterator<BiWeightedString> iterator()
iterator
in interface java.lang.Iterable<BiWeightedString>
public void remove(BiWeightedString account)
id
- public BiWeightedStrings reverse()
public int size()
public BiWeightedStrings sortByName()
public BiWeightedStrings sortByWeight1()
public BiWeightedStrings sortByWeight2()