/*
Copyright 2012 Twitter, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.twitter.hraven;

/**
 * Represents a single counter entry, which may be associated with a job,
 * task, or task attempt.
 */
public class Counter {
  private String group;
  private String key;
  private long value;

  public Counter(String group, String key, long value) {
    this.group = group;
    this.key = key;
    this.value = value;
  }

  public String getGroup() {
    return group;
  }

  public void setGroup(String group) {
    this.group = group;
  }

  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public long getValue() {
    return value;
  }

  public void setValue(long value) {
    this.value = value;
  }

  @Override
  public boolean equals(Object other) {
    if (other instanceof Counter) {
      Counter otherCounter = (Counter)other;
      return this.group.equals(otherCounter.group) &&
          this.key.equals(otherCounter.key) &&
          this.value == otherCounter.value;
    }
    return false;
  }
}

@@ -973,278 +973,84 @@
 lic 
-void setGroup(String group) %7B%0A    this.group = group;%0A  %7D%0A%0A  public String getKey() %7B%0A    return key;%0A  %7D%0A%0A  public void setKey(String key) %7B%0A    this.key = key;%0A  %7D%0A%0A  public long getValue() %7B%0A    return value;%0A  %7D%0A%0A  public void setValue(long value) %7B%0A    this.value =
+String getKey() %7B%0A    return key;%0A  %7D%0A%0A  public long getValue() %7B%0A    return
  val

Counter objects should be immutable