You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manipulate collections easily using C# LINQ style queries and Java 8 closures.
3
4
4
-
# Description
5
+
##Description
5
6
6
7
Android LINQ is a small subset of collection manipulation utilities inspired by Microsoft C# LINQ library and targeted at Android developers looking to use new Java 8 Stream() API.
7
8
@@ -11,23 +12,15 @@ Android LINQ has little to no impact on performance because it does not make use
11
12
12
13
Anyway, you need not to worry. Just add this to your Gradle/Maven and suffer with manual collection iteration no more!
13
14
14
-
# Usage
15
+
## Usage
16
+
17
+
### Android
15
18
16
19
To use Android LINQ, first, go and setup [Retrolambda for Android](https://github.com/evant/gradle-retrolambda) so we can use those fancy closures from Java 8 (don't worry, its just some extra lines on your build.gradle file).
17
20
18
21
Now, just add this line to your project build.gradle (files are hosted in Bintray jCenter, so don't forget to add it to the repositories list too).
19
22
20
-
### Maven
21
-
22
-
```
23
-
<dependency>
24
-
<groupId>br.com.zbra</groupId>
25
-
<artifactId>android-linq</artifactId>
26
-
<version>1.0.0</version>
27
-
</dependency>
28
-
```
29
-
30
-
### Gradle
23
+
#### Gradle
31
24
32
25
```
33
26
...
@@ -40,44 +33,63 @@ repositories {
40
33
compile 'br.com.zbra:android-linq:1.0.0'
41
34
```
42
35
43
-
# Examples
36
+
### Standard Java 8
37
+
38
+
Android LINQ uses standard Java and therefore can also be used outside Android.
0 commit comments