io.carml.engine.sourceresolver.CompositeSourceResolver Maven / Gradle / Ivy
package io.carml.engine.sourceresolver;
import com.google.common.collect.ImmutableSet;
import java.util.Optional;
import java.util.Set;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class CompositeSourceResolver implements SourceResolver {
private final Set resolvers;
public static CompositeSourceResolver of(SourceResolver... sourceResolvers) {
return of(ImmutableSet.copyOf(sourceResolvers));
}
public static CompositeSourceResolver of(Set sourceResolvers) {
return new CompositeSourceResolver(sourceResolvers);
}
@Override
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy