1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

series trees on-the-fly

This commit is contained in:
Nikolay Pultsin 2013-02-09 15:14:54 +04:00
parent 04f64f3d81
commit 454bd46593
11 changed files with 229 additions and 53 deletions

View file

@ -95,16 +95,6 @@ public abstract class LibraryTree extends FBTree {
}
}
SeriesTree getSeriesSubTree(String series) {
final SeriesTree temp = new SeriesTree(Collection, series);
int position = Collections.binarySearch(subTrees(), temp);
if (position >= 0) {
return (SeriesTree)subTrees().get(position);
} else {
return new SeriesTree(this, series, - position - 1);
}
}
public boolean removeBook(Book book) {
final LinkedList<FBTree> toRemove = new LinkedList<FBTree>();
for (FBTree tree : this) {