diff options
Diffstat (limited to 'metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/ConsumerId.java')
-rw-r--r-- | metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/ConsumerId.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/ConsumerId.java b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/ConsumerId.java deleted file mode 100644 index 0d7acd5f354..00000000000 --- a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/metric/model/ConsumerId.java +++ /dev/null @@ -1,38 +0,0 @@ -/* -* Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. - */ - -package ai.vespa.metricsproxy.metric.model; - -import java.util.Objects; - -/** - * @author gjoranv - */ -public class ConsumerId { - public final String id; - private ConsumerId(String id) { this.id = id; } - - public static ConsumerId toConsumerId(String id) { return new ConsumerId(id); } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - ConsumerId that = (ConsumerId) o; - return Objects.equals(id, that.id); - } - - @Override - public int hashCode() { - return Objects.hash(id); - } - - @Override - public String toString() { - return "ConsumerId{" + - "id='" + id + '\'' + - '}'; - } - -} |