Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aNNiMON committed Jul 21, 2015
1 parent 6c595e7 commit b13d150
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,35 @@ 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:
```xml
<dependency>
<groupId>com.annimon</groupId>
<artifactId>stream</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>`
```
or Gradle:
```groovy
dependencies {
...
compile 'com.annimon:stream:1.0.1'
compile 'com.annimon:stream:1.0.2'
...
}
```
Expand Down

0 comments on commit b13d150

Please sign in to comment.