package com.continuuity.common.discovery;

import com.google.common.collect.Maps;

import java.util.Map;
import java.util.Set;

/**
 * Defines the payload that is placed for every service.
 */
public class ServicePayload {
  private Map<String, String> values = Maps.newHashMap();

  /**
   * Default constructor
   */
  public ServicePayload() {}

  /**
   * Adds a key and value as service payload.
   *
   * @param key to be stored.
   * @param value to be associated with key.
   */
  public void add(String key, String value) {
    values.put(key, value);
  }

  public String get(String key) {
    return values.get(key);
  }

  public Set<Map.Entry<String, String>> getAll() {
    return values.entrySet();
  }
}


@@ -226,16 +226,22 @@
 private 
+final 
 Map%3CStri
@@ -285,75 +285,8 @@
 );%0A%0A
-  /**%0A   * Default constructor%0A   */%0A  public ServicePayload() %7B%7D%0A%0A
   /*

Remove redundant constructor