org.greenrobot.greendao.query.Query.listIterator()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中org.greenrobot.greendao.query.Query.listIterator方法的一些代码示例,展示了Query.listIterator的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.listIterator方法的具体详情如下:
包路径:org.greenrobot.greendao.query.Query
类名称:Query
方法名:listIterator

Query.listIterator介绍

[英]Executes the query and returns the result as a list iterator; make sure to close it to close the underlying cursor. The cursor is closed once the iterator is fully iterated through.
[中]执行查询并以列表迭代器的形式返回结果;确保将其关闭以关闭基础光标。一旦迭代器被完全迭代,光标就会关闭。

代码示例

代码示例来源:origin: greenrobot/greenDAO

/**
 * Shorthand for {@link QueryBuilder#build() build()}.{@link Query#listIterator() listIterator()}; see
 * {@link Query#listIterator()} for details. To execute a query more than once, you should build the query and keep
 * the {@link Query} object for efficiency reasons.
 */
public CloseableListIterator<T> listIterator() {
  return build().listIterator();
}

代码示例来源:origin: greenrobot/greenDAO

queryFromOtherThread.listIterator();
  fail("Did not throw");
} catch (DaoException expected) {

代码示例来源:origin: org.greenrobot/greendao

/**
 * Shorthand for {@link QueryBuilder#build() build()}.{@link Query#listIterator() listIterator()}; see
 * {@link Query#listIterator()} for details. To execute a query more than once, you should build the query and keep
 * the {@link Query} object for efficiency reasons.
 */
public CloseableListIterator<T> listIterator() {
  return build().listIterator();
}

相关文章