com.google.common.collect.Maps.transformEntry()方法的使用及代码示例

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

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

Maps.transformEntry介绍

[英]Returns a view of an entry transformed by the specified transformer.
[中]返回由指定转换器转换的项的视图。

代码示例

代码示例来源:origin: google/guava

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: google/j2objc

/** Views an entry transformer as a function from entries to entries. */
static <K, V1, V2> Function<Entry<K, V1>, Entry<K, V2>> asEntryToEntryFunction(
  final EntryTransformer<? super K, ? super V1, V2> transformer) {
 checkNotNull(transformer);
 return new Function<Entry<K, V1>, Entry<K, V2>>() {
  @Override
  public Entry<K, V2> apply(final Entry<K, V1> entry) {
   return transformEntry(transformer, entry);
  }
 };
}

代码示例来源:origin: wildfly/wildfly

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: google/guava

private @Nullable Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: wildfly/wildfly

@NullableDecl
private Entry<K, V2> transformEntry(@NullableDecl Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: Nextdoor/bender

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: com.diffplug.guava/guava-collect

@Override
  public Entry<K, V2> apply(final Entry<K, V1> entry) {
    return transformEntry(transformer, entry);
  }
};

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: com.google.guava/guava-jdk5

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: org.jboss.eap/wildfly-client-all

@Override
 public Entry<K, V2> apply(final Entry<K, V1> entry) {
  return transformEntry(transformer, entry);
 }
};

代码示例来源:origin: Nextdoor/bender

@Nullable
private Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.google.guava

@Nullable
private Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: com.diffplug.guava/guava-collect

@Nullable
private Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
  return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

@Nullable
private Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@Nullable
private Entry<K, V2> transformEntry(@Nullable Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

@NullableDecl
private Entry<K, V2> transformEntry(@NullableDecl Entry<K, V1> entry) {
 return (entry == null) ? null : Maps.transformEntry(transformer, entry);
}

相关文章