io.github.qudtlib.nodedef.Builder Maven / Gradle / Ivy
package io.github.qudtlib.nodedef;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public interface Builder {
static Set buildSet(Set> builders) {
return builders.stream().map(Builder::build).collect(Collectors.toUnmodifiableSet());
}
static List buildList(List> builders) {
return builders.stream().map(Builder::build).collect(Collectors.toUnmodifiableList());
}
public T build();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy