/// <summary>Add that counters to this counters.</summary> public void Add(Org.Apache.Hadoop.Hdfs.Util.EnumCounters <E> that) { for (int i = 0; i < counters.Length; i++) { this.counters[i] += that.counters[i]; } }
public override bool Equals(object obj) { if (obj == this) { return(true); } else { if (obj == null || !(obj is Org.Apache.Hadoop.Hdfs.Util.EnumCounters)) { return(false); } } Org.Apache.Hadoop.Hdfs.Util.EnumCounters <object> that = (Org.Apache.Hadoop.Hdfs.Util.EnumCounters <object>)obj; return(this.enumClass == that.enumClass && Arrays.Equals(this.counters, that.counters )); }