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

aQute.bnd.build.model.conversions.MapFormatter Maven / Gradle / Ivy

Go to download

The bndlib project is a general library to be used with OSGi bundles. It contains lots of cool functionality that calculates dependencies, etc.

There is a newer version: 2.4.0
Show newest version
package aQute.bnd.build.model.conversions;

import java.util.*;
import java.util.Map.Entry;

public class MapFormatter implements Converter> {

	private CollectionFormatter>	entrySetFormatter;

	public MapFormatter(String listSeparator, Converter> entryFormatter,
			String emptyOutput) {
		entrySetFormatter = new CollectionFormatter>(listSeparator, entryFormatter, emptyOutput);
	}

	public String convert(Map input) throws IllegalArgumentException {
		return entrySetFormatter.convert(input.entrySet());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy