|
| 1 | +/* |
| 2 | + * Copyright (C) 2022 Matthieu Gautier <mgautier@kymeria.fr> |
| 3 | + * |
| 4 | + * This program is free software; you can redistribute it and/or modify |
| 5 | + * it under the terms of the GNU General Public License as published by |
| 6 | + * the Free Software Foundation; either version 3 of the License, or |
| 7 | + * any later version. |
| 8 | + * |
| 9 | + * This program is distributed in the hope that it will be useful, |
| 10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | + * GNU General Public License for more details. |
| 13 | + * |
| 14 | + * You should have received a copy of the GNU General Public License |
| 15 | + * along with this program; if not, write to the Free Software |
| 16 | + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
| 17 | + * MA 02110-1301, USA. |
| 18 | + */ |
| 19 | + |
| 20 | +package org.kiwix.test.libzim; |
| 21 | + |
| 22 | +import org.kiwix.libzim.SearchIterator; |
| 23 | +import java.util.Iterator; |
| 24 | + |
| 25 | +public class TestSearchIterator implements Iterator<TestEntry> |
| 26 | +{ |
| 27 | + private SearchIterator inner; |
| 28 | + public TestSearchIterator(SearchIterator _inner) { inner = _inner; } |
| 29 | + public String getPath() { return inner.getPath(); } |
| 30 | + public String getTitle() { return inner.getTitle(); } |
| 31 | + public int getScore() { return inner.getScore(); } |
| 32 | + public String getSnippet() { return inner.getSnippet(); } |
| 33 | + public int getWordCount() { return inner.getWordCount(); } |
| 34 | + public int getFileIndex() { return inner.getFileIndex(); } |
| 35 | + public int getSize() { return inner.getSize(); } |
| 36 | + public String getZimId() { return inner.getZimId(); } |
| 37 | + |
| 38 | + public boolean hasNext() { return inner.hasNext(); } |
| 39 | + public TestEntry next() { return new TestEntry(inner.next()); } |
| 40 | +} |
0 commit comments