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