首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一个轻量级的过滤API Iterable对象。

一个轻量级的过滤API Iterable对象。

  • 资源大小:317.25 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 一个 过滤 对象 轻量级

资 源 简 介

FilterQ alleviates the pain of using multiple if-else(..) checks when iterating over a collection to obtain a smaller view of that collection. FilterQ uses an EDSL for filtering iterable objects. Usage Sample import static com.gotobject.filter.FilterQ.*; final Iterable a = Arrays.asList(1, 2, 3, 40, 20, 30, 100); final Iterable b = from(a).where(gt(20).and(lt(100))).skip(1); // result (30) What we are writing here to FilterQ is to give me all of the elements from a that are greater than 20 and less than 100, but please, when returning the filtered iterable, skip the first element of the filtered iterable. Another Usage Sample import static com.gotobject.filter.FilterQ.*; final Integer[] numbers = {5, 4, 1, 3, 9, 8, 6, 7, 2, 0}; final String[] strings = {"zero","one","two","three","four","five","six","seven","eight

文 件 列 表

ext
reflection
xml
lib
junit-4.5.jar
junit4ext-0.2.2.jar
src
com
tests
com
build.properties
build.xml
filterq.iml
filterq.ipr
filterq.iws
tasks.xml

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.233952s