Sha256: 04e5cbfeced77b3e8375cf8825b897fe9dd13ae6fe3b44a0ab139e3fb97c0b45
Contents?: true
Size: 857 Bytes
Versions: 104
Compression:
Stored size: 857 Bytes
Contents
package org.embulk.spi.unit; import java.util.Map; import java.util.HashMap; import java.util.Properties; import com.google.common.base.Function; import com.google.common.collect.Maps; import com.fasterxml.jackson.annotation.JsonCreator; public class ToStringMap extends HashMap<String, String> { @JsonCreator public ToStringMap(Map<String, ToString> map) { super(Maps.transformValues(map, new Function<ToString, String>() { public String apply(ToString value) { if (value == null) { return "null"; } else { return value.toString(); } } })); } public Properties toProperties() { Properties props = new Properties(); props.putAll(this); return props; } }
Version data entries
104 entries across 104 versions & 1 rubygems