Search in sources :

Example 1 with GojuonItemComporator

use of pri.weiqiang.liyujapanese.comparator.GojuonItemComporator in project MyJapanese by 54wall.

the class DBManager method getQingYin.

public synchronized List<GojuonItem> getQingYin() {
    if (qingYin == null) {
        qingYin = new ArrayList<>();
        List<GojuonItem> query = query();
        for (GojuonItem item : query) {
            if (item.getCategory() == Constants.CATEGORY_QINGYIN) {
                qingYin.add(item);
            }
        }
        Collections.sort(qingYin, new GojuonItemComporator());
    }
    return qingYin;
}
Also used : GojuonItemComporator(pri.weiqiang.liyujapanese.comparator.GojuonItemComporator) GojuonItem(pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)

Example 2 with GojuonItemComporator

use of pri.weiqiang.liyujapanese.comparator.GojuonItemComporator in project MyJapanese by 54wall.

the class DBManager method getAoYin.

public List<GojuonItem> getAoYin() {
    if (aoYin == null) {
        aoYin = new ArrayList<>();
        List<GojuonItem> query = query();
        for (GojuonItem item : query) {
            if (item.getCategory() == Constants.CATEGORY_AOYIN) {
                aoYin.add(item);
            }
        }
        Collections.sort(aoYin, new GojuonItemComporator());
    }
    return aoYin;
}
Also used : GojuonItemComporator(pri.weiqiang.liyujapanese.comparator.GojuonItemComporator) GojuonItem(pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)

Example 3 with GojuonItemComporator

use of pri.weiqiang.liyujapanese.comparator.GojuonItemComporator in project MyJapanese 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;
}
Also used : GojuonItemComporator(pri.weiqiang.liyujapanese.comparator.GojuonItemComporator) GojuonItem(pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)

Example 4 with GojuonItemComporator

use of pri.weiqiang.liyujapanese.comparator.GojuonItemComporator in project LiYuJapanese by 54wall.

the class DBManager method getAoYin.

public List<GojuonItem> getAoYin() {
    if (aoYin == null) {
        aoYin = new ArrayList<>();
        List<GojuonItem> query = query();
        for (GojuonItem item : query) {
            if (item.getCategory() == Constants.CATEGORY_AOYIN) {
                aoYin.add(item);
            }
        }
        Collections.sort(aoYin, new GojuonItemComporator());
    }
    return aoYin;
}
Also used : GojuonItemComporator(pri.weiqiang.liyujapanese.comparator.GojuonItemComporator) GojuonItem(pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)

Example 5 with GojuonItemComporator

use of pri.weiqiang.liyujapanese.comparator.GojuonItemComporator in project LiYuJapanese by 54wall.

the class DBManager method getQingYin.

public synchronized List<GojuonItem> getQingYin() {
    if (qingYin == null) {
        qingYin = new ArrayList<>();
        List<GojuonItem> query = query();
        for (GojuonItem item : query) {
            if (item.getCategory() == Constants.CATEGORY_QINGYIN) {
                qingYin.add(item);
            }
        }
        Collections.sort(qingYin, new GojuonItemComporator());
    }
    return qingYin;
}
Also used : GojuonItemComporator(pri.weiqiang.liyujapanese.comparator.GojuonItemComporator) GojuonItem(pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)

Aggregations

GojuonItemComporator (pri.weiqiang.liyujapanese.comparator.GojuonItemComporator)6 GojuonItem (pri.weiqiang.liyujapanese.mvp.bean.gojuon.GojuonItem)6