blob: 8a5b3807a80e6e4a04ab6c7bbf2e06810b0068fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.metrics;
import java.util.Objects;
/**
* @author olaa
*/
public class ClusterInfo {
private final String clusterId;
private final String clusterType;
public ClusterInfo(String clusterId, String clusterType) {
this.clusterId = clusterId;
this.clusterType = clusterType;
}
public String getClusterId() {
return clusterId;
}
public String getClusterType() {
return clusterType;
}
@Override
public int hashCode() {
return Objects.hash(clusterId, clusterType);
}
@Override
public boolean equals(Object o) {
if (!(o instanceof ClusterInfo other)) return false;
return clusterId.equals(other.clusterId) && clusterType.equals(other.clusterType);
}
}
|