Skip to content

Commit 47d4ee4

Browse files
committed
Rename Each<T> to Action<T> so can be reused
1 parent 944cd72 commit 47d4ee4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/AndroidClient/android/src/main/java/net/servicestack/func/Each.java renamed to src/AndroidClient/android/src/main/java/net/servicestack/func/Action.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
package net.servicestack.func;
55

6-
public interface Each<T> {
6+
public interface Action<T> {
77
public void apply(T t);
88
}

src/AndroidClient/android/src/main/java/net/servicestack/func/Func.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ public static <T, R> ArrayList<R> mapi(Iterable<T> xs, FunctionIndex<T, R> f) {
159159
return to;
160160
}
161161

162-
public static <T> void each(T[] xs, Each<T> f) {
162+
public static <T> void each(T[] xs, Action<T> f) {
163163
each(toList(xs), f);
164164
}
165165

166-
public static <T> void each(Iterable<T> xs, Each<T> f) {
166+
public static <T> void each(Iterable<T> xs, Action<T> f) {
167167
if (xs == null) return;
168168
for (T x : xs) {
169169
f.apply(x);

src/AndroidClient/client/src/main/java/net/servicestack/func/Each.java renamed to src/AndroidClient/client/src/main/java/net/servicestack/func/Action.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
package net.servicestack.func;
55

6-
public interface Each<T> {
6+
public interface Action<T> {
77
public void apply(T t);
88
}

src/AndroidClient/client/src/main/java/net/servicestack/func/Func.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ public static <T, R> ArrayList<R> mapi(Iterable<T> xs, FunctionIndex<T, R> f) {
159159
return to;
160160
}
161161

162-
public static <T> void each(T[] xs, Each<T> f) {
162+
public static <T> void each(T[] xs, Action<T> f) {
163163
each(toList(xs), f);
164164
}
165165

166-
public static <T> void each(Iterable<T> xs, Each<T> f) {
166+
public static <T> void each(Iterable<T> xs, Action<T> f) {
167167
if (xs == null) return;
168168
for (T x : xs) {
169169
f.apply(x);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy