org.allurefw.report.entity.WithFileName Maven / Gradle / Ivy
The newest version!
package org.allurefw.report.entity;
import com.google.common.io.Files;
import java.nio.file.Paths;
/**
* @author Dmitry Baev [email protected]
* Date: 05.02.16
*/
public interface WithFileName {
String getPath();
default String getFileName() {
return Paths.get(getPath()).getFileName().toString();
}
default String getFileExtension() {
return Files.getFileExtension(getPath());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy