diff options
author | 2021-08-15 17:41:18 +0200 | |
---|---|---|
committer | 2021-08-15 17:41:18 +0200 | |
commit | ded547b7ae3d5d21d82ca0578e5a6b8a7d07aa94 (patch) | |
tree | ee35d5d7ab334322da965f3235ba7ee2bb99fa9b /model-data | |
parent | fixing visibilities in CollectionsUtil (diff) | |
download | refinery-ded547b7ae3d5d21d82ca0578e5a6b8a7d07aa94.tar.gz refinery-ded547b7ae3d5d21d82ca0578e5a6b8a7d07aa94.tar.zst refinery-ded547b7ae3d5d21d82ca0578e5a6b8a7d07aa94.zip |
Fixing CollectionsUtil visibility
Diffstat (limited to 'model-data')
-rw-r--r-- | model-data/src/main/java/org/eclipse/viatra/solver/data/util/CollectionsUtil.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/model-data/src/main/java/org/eclipse/viatra/solver/data/util/CollectionsUtil.java b/model-data/src/main/java/org/eclipse/viatra/solver/data/util/CollectionsUtil.java index 68945319..21b0a9df 100644 --- a/model-data/src/main/java/org/eclipse/viatra/solver/data/util/CollectionsUtil.java +++ b/model-data/src/main/java/org/eclipse/viatra/solver/data/util/CollectionsUtil.java | |||
@@ -10,7 +10,7 @@ public final class CollectionsUtil { | |||
10 | throw new UnsupportedOperationException(); | 10 | throw new UnsupportedOperationException(); |
11 | } | 11 | } |
12 | 12 | ||
13 | static <S,T> Iterator<T> map(Iterator<S> source, Function<S, T> transformation) { | 13 | public static <S,T> Iterator<T> map(Iterator<S> source, Function<S, T> transformation) { |
14 | return new Iterator<T>() { | 14 | return new Iterator<T>() { |
15 | 15 | ||
16 | @Override | 16 | @Override |
@@ -25,11 +25,11 @@ public final class CollectionsUtil { | |||
25 | }; | 25 | }; |
26 | } | 26 | } |
27 | 27 | ||
28 | static <S,T> Iterable<T> map(Iterable<S> source, Function<S, T> transformation) { | 28 | public static <S,T> Iterable<T> map(Iterable<S> source, Function<S, T> transformation) { |
29 | return (()->map(source.iterator(),transformation)); | 29 | return (()->map(source.iterator(),transformation)); |
30 | } | 30 | } |
31 | 31 | ||
32 | static <T> Iterator<T> filter(Iterator<T> source, Predicate<T> condition) { | 32 | public static <T> Iterator<T> filter(Iterator<T> source, Predicate<T> condition) { |
33 | return new Iterator<T>() { | 33 | return new Iterator<T>() { |
34 | T internalNext = move(); | 34 | T internalNext = move(); |
35 | boolean internalHasNext; | 35 | boolean internalHasNext; |