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

com.tngtech.propertyloader.impl.helpers.PropertyFileNameHelper Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
package com.tngtech.propertyloader.impl.helpers;


import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class PropertyFileNameHelper {
    public List getFileNames(Collection baseNames, Collection suffixes, String fileExtension) {
        List fileNameList = new ArrayList();
        for (String baseName : baseNames) {
            fileNameList.add(baseName + "." + fileExtension);
            for (String suffix : suffixes) {
                fileNameList.add(baseName + "." + suffix + "." + fileExtension);
            }
        }
        return fileNameList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy