Skip to content

neonailol/kactoos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kactoos.

Build Status Build status Jitpack Active Contributors Code Volume Coding Hours Efficiency Utilization

Reworked to Kotlin version of Cactoos

Usage

Kactoos intended to be used as drop-in replacement for Cactoos, this statement backed by compatibility tests

Examples

Write to file, read it contents, and compare it with original

val temp = Files.createTempFile("kactoos-1", "txt-1")
val identical = Equals(
    {
        TextOf(
            TeeInput(
                InputOf(
                    BytesOf(
                        TextOf("Hello, world!")
                    )
                ),
                WriterAsOutput(
                    WriterTo(temp)
                )
            )
        ).asString()
    },
    { "Hello, world!" }
).invoke()

Purpose

Target platforms other than jvm, specifically kotlin-js and kotlin-native

Some implementation notes

  • Do no use @JvmOverloads and default arguments in functions and constructors as it's not portable

About

General-purpose collection of OOP primitives for Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 21