Skip to content

so-dang-cool/levee

Repository files navigation

maven central javadoc license

Levee

Keep your streams under control.

Levee has a goal of making streams easier to write and read. To do this, it provides a small collection of simple-to-use functions. No other dependencies.

MapEntries

Ever wanted to just map the keys or values of a Map?

var myMap = Map.of("hey", "you");

var louder = myMap.entrySet()
    .stream()
    .map(valueTo(v -> v.toUpperCase()))
    .collect(toMap());

Keep the new AbstractMap.SimpleImmutableEntry<K, V>(key, value)) out of your lambdas and collectors, Levee has got this for you already.

See more examples in MapEntriesTest.

More detail in the javadocs. Don't worry too much about trying to understand the crazy higher-order function signatures, pay more attention to the descriptions. Please send issues for anything that could be more clear!

Misc

BSD license

A side quest of J.R. Hill

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published