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

com.fastchar.converters.FastTypeHelper Maven / Gradle / Ivy

package com.fastchar.converters;

import java.util.*;

class FastTypeHelper {

    static Collection getCollectionInstance(Class targetClass) {
        if (targetClass == List.class||targetClass == ArrayList.class) {
            return new ArrayList();
        }else if (targetClass == Set.class||targetClass == HashSet.class) {
            return new HashSet();
        }
        return null;
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy