本文整理了Java中com.google.common.collect.Maps.transformEntry()
方法的一些代码示例,展示了Maps.transformEntry()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Maps.transformEntry()
方法的具体详情如下:
包路径:com.google.common.collect.Maps
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!