use of pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem in project LiYuJapanese by 54wall.
the class DBManager method getQingYinWithoutHeader.
public List<GojuonItem> getQingYinWithoutHeader() {
if (qingYinWithoutHeader == null) {
qingYinWithoutHeader = new ArrayList<>();
List<GojuonItem> query = getQingYin();
for (GojuonItem item : query) {
if (item.getRow() != 0 && item.getColumn() != 0 && item.isExisted()) {
qingYinWithoutHeader.add(item);
}
}
}
return qingYinWithoutHeader;
}
use of pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem in project LiYuJapanese by 54wall.
the class DBManager method getZhuoYin.
public List<GojuonItem> getZhuoYin() {
if (zhuoYin == null) {
zhuoYin = new ArrayList<>();
List<GojuonItem> query = query();
for (GojuonItem item : query) {
if (item.getCategory() == Constants.CATEGORY_ZHUOYIN) {
zhuoYin.add(item);
}
}
Collections.sort(zhuoYin, new GojuonItemComporator());
}
return zhuoYin;
}
use of pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem in project LiYuJapanese by 54wall.
the class PuzzleActivityPresenterImpl method loadData.
@Override
public void loadData() {
List<GojuonItem> items = model.getItems();
List<GojuonItem> jams = new ArrayList<>();
GojuonItem current = items.get(0);
jams.add(items.get(1));
jams.add(items.get(2));
jams.add(items.get(3));
view.setData(current, jams);
}
Aggregations