ch.lambdaj.Lambda.min()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(171)

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

Lambda.min介绍

[英]Finds the minimum item in the given iterable. Actually it handles also Maps, Arrays and Iterator by collecting their values. Note that this method accepts an Object in order to be used in conjunction with the Lambda#forEach(Iterable).
[中]查找给定iterable中的最小项。实际上,它还通过收集映射、数组和迭代器的值来处理它们。请注意,此方法接受一个对象,以便与Lambda#forEach(Iterable)一起使用。

代码示例

代码示例来源:origin: mariofusco/lambdaj

/**
 * Finds the minimum item in this iterable defined by the given argument.
 * @param argument An argument defined using the {@link Lambda#on(Class)} method
 * @return The minimum of all the Object in the given iterable
 */
public <A> A min(A argument) {
  return Lambda.min(getInner(), argument);
}

代码示例来源:origin: net.thucydides/thucydides-core

public DateTime getStartTime() {
  return min(outcomes, on(TestOutcome.class).getStartTime());
}

代码示例来源:origin: net.serenity-bdd/core

public DateTime getStartTime() {
  return min(outcomes, on(TestOutcome.class).getStartTime());
}

相关文章