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

io.datakernel.util.Initializable Maven / Gradle / Ivy

package io.datakernel.util;

import java.util.List;

@SuppressWarnings("unchecked")
public interface Initializable> {
	default T initialize(Initializer initializer) {
		initializer.accept((T) this);
		return (T) this;
	}

	default T initialize(List> initializers) {
		for (Initializer initializer : initializers) {
			initializer.accept((T) this);
		}
		return (T) this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy