Package khttp.extensions
Class ExtensionsKt
-
- All Implemented Interfaces:
public final class ExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static FileLikefileLike(File $self, String name)Creates a FileLike from this File and name. final static FileLikefileLike(Path $self)Creates a FileLike from the Path. final static FileLikefileLike(Path $self, String name)Creates a FileLike from this Path and name. final static FileLikefileLike(String $self, String name)Creates a FileLike from this String and name. final static List<ByteArray>splitLines(ByteArray $self)final static List<ByteArray>split(ByteArray $self, ByteArray delimiter)final static <K extends Any, V extends Any> UnitputIfAbsentWithNull(Map<K, V> $self, K key, V value)final static <K extends Any, V extends Any> UnitputAllIfAbsentWithNull(Map<K, V> $self, Map<K, V> other)-
-
Method Detail
-
fileLike
final static FileLike fileLike(File $self, String name)
Creates a FileLike from this File and name. If name is not specified, the filename will be used.
-
fileLike
final static FileLike fileLike(Path $self, String name)
Creates a FileLike from this Path and name. If name is not specified, the filename will be used.
-
fileLike
final static FileLike fileLike(String $self, String name)
Creates a FileLike from this String and name.
-
splitLines
final static List<ByteArray> splitLines(ByteArray $self)
-
putIfAbsentWithNull
final static <K extends Any, V extends Any> Unit putIfAbsentWithNull(Map<K, V> $self, K key, V value)
-
-
-
-