diff --git a/README.adoc b/README.adoc index 73f9a79..6ba36d1 100644 --- a/README.adoc +++ b/README.adoc @@ -41,7 +41,7 @@ Maven:: io.github.avegera stream-utils - 0.1.0 + 0.2.0 ---- @@ -49,7 +49,7 @@ Gradle:: + [source,groovy] ---- -implementation 'io.github.avegera:stream-utils:0.1.0' +implementation 'io.github.avegera:stream-utils:0.2.0' ---- ==== @@ -61,51 +61,7 @@ implementation 'io.github.avegera:stream-utils:0.1.0' * https://github.com/avegera/stream-utils/wiki[Wiki Documentation] -== Utilities List - -The list of library classes: - -[plantuml, diagram-classes, png] -.... -hide fields -skinparam monochrome true -skinparam defaultFontName JetBrains Mono - -class SafeStreamUtils { - * safeStream() - * safeStreamFunction() -} - -class StreamUtils { -* map() -* mapToSet() -* filter() -* filterToSet() -* flatMap() -* flatMapToSet() -* flatMapCollections() -* flatMapCollectionsToSet() -* distinct() -* distinctToSet() -* collectToList() -* collectToSet() -* sort() -* sortToSet() -* count() -* findFirst() -* findFirstOrDefault() -* findFirstOrNull() -* findAny() -* findAnyOrDefault() -* findAnyOrNull() -* allMatch() -* anyMatch() -* noneMatch() -} -SafeStreamUtils <--right-- StreamUtils : uses -.... - -=== SafeStreamUtils +=== Streams `Streams` contains NPE-safety methods for stream instantiating by provided input data. For example, the following method returns stream of users (or empty stream in case when `users == null`): [source,java] @@ -113,7 +69,7 @@ SafeStreamUtils <--right-- StreamUtils : uses Stream stream = safeStream(users); ---- -=== StreamUtils +=== Lists `Lists` contains NPE-safety method-aliases for common Stream API intermediate operations like: * map() @@ -122,7 +78,7 @@ Stream stream = safeStream(users); * distinct() * sort() -By default, the result of all operations is a `List`. Use suffix `...ToSet()` in method name to return `Set` instead. For example, the following method returns list of groups: +By default, the result of operations is a `List`. Use suffix `...ToSet()` in method name to return `Set` instead. For example, the following method returns list of groups: [source,java] ----