summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-30 10:04:50 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-30 10:04:50 +0100
commit448231f18ba53edf5c0e7ab4b6732ef69328281c (patch)
tree289f528fd6adac2a39e636c449c633c26fdb838e /vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
parent711362f17d4bbece0dc2d0833a22063374ae3e04 (diff)
Reduce the simple usage of guava where java has caught up
Diffstat (limited to 'vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java b/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
index 2639e153923..1057ffa9552 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
@@ -1,8 +1,6 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.tensor.functions;
-import com.google.common.collect.ImmutableList;
-
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
@@ -510,9 +508,9 @@ public class ScalarFunctions {
// Variable-length operators -----------------------------------------------------------------------------
public static class EqualElements implements Function<List<Long>, Double> {
- private final ImmutableList<String> argumentNames;
+ private final List<String> argumentNames;
private EqualElements(List<String> argumentNames) {
- this.argumentNames = ImmutableList.copyOf(argumentNames);
+ this.argumentNames = List.copyOf(argumentNames);
}
@Override
@@ -553,9 +551,9 @@ public class ScalarFunctions {
}
public static class SumElements implements Function<List<Long>, Double> {
- private final ImmutableList<String> argumentNames;
+ private final List<String> argumentNames;
private SumElements(List<String> argumentNames) {
- this.argumentNames = ImmutableList.copyOf(argumentNames);
+ this.argumentNames = List.copyOf(argumentNames);
}
@Override