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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations