org.pitest.classinfo.NameToClassInfo Maven / Gradle / Ivy
package org.pitest.classinfo;
import java.util.function.Function;
import java.util.Optional;
public class NameToClassInfo implements Function> {
private final ClassInfoSource repository;
public NameToClassInfo(final ClassInfoSource repository) {
this.repository = repository;
}
@Override
public Optional apply(final ClassName a) {
return this.repository.fetchClass(a);
}
}