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

org.deephacks.tools4j.config.test.ConversionUtils Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
package org.deephacks.tools4j.config.test;

import com.google.common.collect.Lists;
import org.deephacks.tools4j.config.model.Bean;
import org.deephacks.tools4j.config.spi.Conversion;

import java.util.Collection;

public class ConversionUtils {

    private static Conversion CONVERSION = Conversion.get();


    public static Collection toBeans(Object... objects) {
        return CONVERSION.convert(Lists.newArrayList(objects), Bean.class);
    }

    public static Bean toBean(Object object) {
        return CONVERSION.convert(object, Bean.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy