From b13d15003c4bd59469358693bcb534483a53e029 Mon Sep 17 00:00:00 2001 From: Victor Melnik Date: Tue, 21 Jul 2015 16:41:14 +0300 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb22251d..8f111daf 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,20 @@ Includes: + `Optional` class; + `Objects` from Java 7. +### Usage + +```java +Stream.of(/* array | list | set | map | anything based on Iterator/Iterable interface */) + .filter(..) + .map(..) + ... + .sorted() + .forEach(..); +Stream.of(value1, value2, value3)... +Stream.ofRange(0, 10)... +``` +Example project: https://github.com/aNNiMON/Android-Java-8-Stream-Example + ### Download Download [latest release](https://github.com/aNNiMON/Lightweight-Stream-API/releases) or grab via Maven: @@ -16,14 +30,14 @@ Download [latest release](https://github.com/aNNiMON/Lightweight-Stream-API/rele com.annimon stream - 1.0.1 + 1.0.2 ` ``` or Gradle: ```groovy dependencies { ... - compile 'com.annimon:stream:1.0.1' + compile 'com.annimon:stream:1.0.2' ... } ```