SNRK-48: Remove nullable types

This commit is contained in:
Kirill Grachev 2023-04-15 00:51:45 +03:00
parent 7127d3582d
commit a9c0cc10a6

View File

@ -3,13 +3,13 @@ package space.kscience.snark.storage
import java.nio.file.Path import java.nio.file.Path
public interface Directory : AutoCloseable { public interface Directory : AutoCloseable {
public suspend fun get(filename: String): FileReader? public suspend fun get(filename: String): FileReader
public suspend fun create(filename: String, ignoreIfExists: Boolean = false) public suspend fun create(filename: String, ignoreIfExists: Boolean = false)
public suspend fun put(filename: String): FileWriter? public suspend fun put(filename: String): FileWriter
public suspend fun getSubdir(path: Path): Directory? public suspend fun getSubdir(path: Path): Directory
public suspend fun createSubdir(dirname: String, ignoreIfExists: Boolean = false): Directory? public suspend fun createSubdir(dirname: String, ignoreIfExists: Boolean = false): Directory
} }
public interface FileReader : AutoCloseable { public interface FileReader : AutoCloseable {