All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.arquillian.cube.docker.impl.util.YamlUtil Maven / Gradle / Ivy

There is a newer version: 2.0.0.Final
Show newest version
package org.arquillian.cube.docker.impl.util;

import java.util.Collection;
import java.util.Map;

public class YamlUtil {

    private YamlUtil() {
        super();
    }

    public static final boolean asBoolean(Map map, String property) {
        return (boolean) map.get(property);
    }

    @SuppressWarnings("unchecked")
    public static final Collection> asListOfMap(Map map, String property) {
        return (Collection>) map.get(property);
    }

    @SuppressWarnings("unchecked")
    public static final Collection asListOfString(Map map, String property) {
        return (Collection) map.get(property);
    }

    public static final String asString(Map map, String property) {
        return (String) map.get(property);
    }

    @SuppressWarnings("unchecked")
    public static final Map asMap(Map map, String property) {
        return (Map) map.get(property);
    }

    @SuppressWarnings("unchecked")
    public static final Map asMapOfStrings(Map map, String property) {
        return (Map) map.get(property);
    }

    public static final int asInt(Map map, String property) {
        return (int) map.get(property);
    }

    public static final long asLong(Map map, String property) {
        return (long) map.get(property);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy