org.apache.ignite.internal.util.typedef.F.exist()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(95)

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

F.exist介绍

暂无

代码示例

代码示例来源:origin: apache/ignite

/**
 * @throws Exception If failed.
 */
@Test
public void testResolveLocalAddresses() throws Exception {
  InetAddress inetAddress = InetAddress.getByName("0.0.0.0");
  IgniteBiTuple<Collection<String>, Collection<String>> addrs = U.resolveLocalAddresses(inetAddress);
  Collection<String> hostNames = addrs.get2();
  assertFalse(hostNames.contains(null));
  assertFalse(hostNames.contains(""));
  assertFalse(hostNames.contains("127.0.0.1"));
  assertFalse(F.exist(hostNames, new IgnitePredicate<String>() {
    @Override public boolean apply(String hostName) {
      return hostName.contains("localhost") || hostName.contains("0:0:0:0:0:0:0:1");
    }
  }));
}

代码示例来源:origin: apache/ignite

final String keyType = args[i].toString();
if (!F.exist(mappings.values(), new IgnitePredicate<EntryMapping>() {
  @Override public boolean apply(EntryMapping em) {
    return em.keyType().equals(keyType);

代码示例来源:origin: org.apache.ignite/ignite-core

final String keyType = args[i].toString();
if (!F.exist(mappings.values(), new IgnitePredicate<EntryMapping>() {
  @Override public boolean apply(EntryMapping em) {
    return em.keyType().equals(keyType);

相关文章