本文整理了Java中ch.lambdaj.Lambda.exists()
方法的一些代码示例,展示了Lambda.exists()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lambda.exists()
方法的具体详情如下:
包路径:ch.lambdaj.Lambda
类名称:Lambda
方法名:exists
[英]Returns true if the given iterable contains at least an item that matches the given hamcrest Matcher 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至少包含一个与给定的hamcrest匹配器匹配的项,则返回true。实际上,它还通过收集映射、数组和迭代器的值来处理该项。请注意,此方法接受一个对象,以便与Lambda#forEach(Iterable)一起使用。
代码示例来源:origin: io.openscore.lang/score-lang-compiler
if (!(exists(validKeywords, equalToIgnoringCase(key)))) {
throw new RuntimeException("Property: \'" + key + "\' at: \'" + dataLogicalName + "\' is illegal");
代码示例来源:origin: net.thucydides/thucydides-core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class), is(expectedTag)));
}
代码示例来源:origin: net.serenity-bdd/core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class), is(expectedTag)));
}
代码示例来源:origin: io.cloudslang.lang/cloudslang-compiler
if (!(exists(validKeywords, equalToIgnoringCase(key)))) {
String additionalParentPropertyMessage =
StringUtils.isEmpty(parentProperty) ? "" : " under \'" + parentProperty + "\'";
代码示例来源:origin: CloudSlang/cloud-slang
if (!(exists(validKeywords, equalToIgnoringCase(key)))) {
String additionalParentPropertyMessage =
StringUtils.isEmpty(parentProperty) ? "" : " under \'" + parentProperty + "\'";
代码示例来源:origin: net.thucydides/thucydides-core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class).getType(), is(tagType)));
}
代码示例来源:origin: net.serenity-bdd/core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class).getType(), is(tagType)));
}
代码示例来源:origin: net.serenity-bdd/core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class).getName(), equalToIgnoringCase(tagName)));
}
代码示例来源:origin: net.thucydides/thucydides-core
@Override
public boolean matches(Object matchee) {
TestOutcome testOutcome = (TestOutcome) matchee;
return exists(testOutcome.getTags(), having(on(TestTag.class).getName(), equalToIgnoringCase(tagName)));
}
内容来源于网络,如有侵权,请联系作者删除!