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

org.nasdanika.html.NamedItemsContainer Maven / Gradle / Ivy

There is a newer version: 2024.11.0
Show newest version
package org.nasdanika.html;

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

/**
 * A container of named items, e.g. sections with headers or Bootstrap tabs/pills. 
 * @author Pavel Vlasov
 *
 * @param 
 */
public interface NamedItemsContainer {

	void item(Object name, Object content);
	
	boolean isEmpty();
	
	default void load(Iterable> items) {
		for (Entry item: items) {
			item(item.getKey(), item.getValue());
		}
	}
	
	default void load(Map items) {
		load(items.entrySet());
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy