Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add docker build to mediator pom
[nonrtric.git]
/
dmaap-adaptor-java
/
src
/
main
/
java
/
org
/
oran
/
dmaapadapter
/
repository
/
MultiMap.java
diff --git
a/dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/repository/MultiMap.java
b/dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/repository/MultiMap.java
index
38f3d17
..
f7cc14e
100644
(file)
--- a/
dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/repository/MultiMap.java
+++ b/
dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/repository/MultiMap.java
@@
-24,6
+24,7
@@
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
+import java.util.Set;
import java.util.Vector;
/**
import java.util.Vector;
/**
@@
-50,6
+51,14
@@
public class MultiMap<T> {
return null;
}
return null;
}
+ public T get(String key1, String key2) {
+ Map<String, T> innerMap = this.map.get(key1);
+ if (innerMap == null) {
+ return null;
+ }
+ return innerMap.get(key2);
+ }
+
public Collection<T> get(String key) {
Map<String, T> innerMap = this.map.get(key);
if (innerMap == null) {
public Collection<T> get(String key) {
Map<String, T> innerMap = this.map.get(key);
if (innerMap == null) {
@@
-58,6
+67,10
@@
public class MultiMap<T> {
return new Vector<>(innerMap.values());
}
return new Vector<>(innerMap.values());
}
+ public Set<String> keySet() {
+ return this.map.keySet();
+ }
+
public void clear() {
this.map.clear();
}
public void clear() {
this.map.clear();
}