本文整理了Java中io.vavr.collection.Map.toJavaMap()
方法的一些代码示例,展示了Map.toJavaMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Map.toJavaMap()
方法的具体详情如下:
包路径:io.vavr.collection.Map
类名称:Map
方法名:toJavaMap
[英]Converts this Vavr Map to a java.util.Map while preserving characteristics like insertion order ( LinkedHashMap) and sort order ( SortedMap).
[中]
代码示例来源:origin: apache/incubator-pinot
config = ConfigFactory.parseMap(overrideConfigMap.toJavaMap()).withFallback(config);
代码示例来源:origin: apache/incubator-pinot
public static <T> String serializeToString(T object) {
Config config = ConfigFactory.parseMap(serialize(object).toJavaMap());
return config.root().render(ConfigRenderOptions.defaults().setJson(false).setOriginComments(false));
}
代码示例来源:origin: vavr-io/vavr-jackson
@Override
Object toJavaObj(Map<?, ?> value) throws IOException {
return value.toJavaMap();
}
代码示例来源:origin: apache/servicemix-bundles
@Nonnull
@Override
public Object convert(Object source) {
if (source instanceof io.vavr.collection.Seq) {
return ((io.vavr.collection.Seq<?>) source).toJavaList();
}
if (source instanceof io.vavr.collection.Map) {
return ((io.vavr.collection.Map<?, ?>) source).toJavaMap();
}
if (source instanceof io.vavr.collection.Set) {
return ((io.vavr.collection.Set<?>) source).toJavaSet();
}
throw new IllegalArgumentException("Unsupported Javaslang collection " + source.getClass());
}
}
内容来源于网络,如有侵权,请联系作者删除!