re base code
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / neo4j / filters / MatchFilter.java
  * ============LICENSE_END=========================================================
  */
 
-package org.openecomp.sdc.be.dao.utils;
+package org.openecomp.sdc.be.dao.neo4j.filters;
 
-/**
- * A map/set entry as a key/value object to be serialized as is.
- * 
- * @author luc boutier
- */
-public class MapEntry<T, V> {
-       private T key;
-       private V value;
+import java.util.HashMap;
+import java.util.Map;
 
-       public MapEntry() {
-       }
+public class MatchFilter {
+       private Map<String, Object> toMatchProperties;
 
-       public MapEntry(T key, V value) {
-               this.key = key;
-               this.value = value;
+       public MatchFilter() {
+               toMatchProperties = new HashMap<>();
        }
 
-       public T getKey() {
-               return key;
+       public MatchFilter(Map<String, Object> toMatchProperties) {
+               super();
+               this.toMatchProperties = toMatchProperties;
        }
 
-       public void setKey(T key) {
-               this.key = key;
+       public Map<String, Object> getProperties() {
+               return toMatchProperties;
        }
 
-       public V getValue() {
-               return value;
+       public void setProperties(Map<String, Object> properties) {
+               this.toMatchProperties = properties;
        }
 
-       public void setValue(V value) {
-               this.value = value;
+       public MatchFilter addToMatch(String propName, Object value) {
+               toMatchProperties.put(propName, value);
+               return this;
        }
+
 }