public bool Equals(FrekvencePrvku <T, K> other) { throw new NotImplementedException(); }
/* #region IComparable<FrekvencePrvku> Members * * public int CompareTo(FrekvencePrvku<T> other) { * Dictionary<T, int> gdc = other.Frekvence; * if (gdc.Count != mgdcPoctyPrvku.Count) * return 1; * if (mblnZaleziNaPoradi) * return mstrPoradiPrvku.CompareTo(other.PoradiPrvku); * foreach (KeyValuePair<T, int> kvp in mgdcPoctyPrvku) { * if (gdc.ContainsKey(kvp.Key)) { * if (kvp.Value != gdc[kvp.Key]) * return kvp.Value.CompareTo(gdc[kvp.Key]); * } * else { return 1; } * } * return 0; * } * #endregion * */ /* #region IComparable Members * * public int CompareTo(object obj) { * if (obj is FrekvencePrvku<T>) { * FrekvencePrvku<T> fz = obj as FrekvencePrvku<T>; * return this.CompareTo(fz); * } * else { * throw new ArgumentException("Porovnávaný objekt není typu FrekvencePrvku"); * } * throw new NotImplementedException(); * } * #endregion */ /* #region IEquatable<FrekvencePrvku<T>> Members * * bool IEquatable<FrekvencePrvku<T>>.Equals(FrekvencePrvku<T> other) { * if (other == null) * return false; * Dictionary<T, int> gdc = other.Frekvence; * if (gdc.Count != mglstPocitanePrvky.Count) * return false; * if (mblnZaleziNaPoradi && other.ZaleziNaPoradi) * return mstrPoradiPrvku.Equals(other.PoradiPrvku); * foreach (KeyValuePair<T, int> kvp in mgdcPoctyPrvku) { * if (gdc.ContainsKey(kvp.Key)) { * if (kvp.Value != gdc[kvp.Key]) * return false; * } * else { return false; } * } * return true; * } * #endregion */ /* #region IComparable<FrekvencePrvku<T>> Members * * int IComparable<FrekvencePrvku<T>>.CompareTo(FrekvencePrvku<T> other) { * Dictionary<T, int> gdc = other.Frekvence; * if (gdc.Count != mgdcPoctyPrvku.Count) * return 1; * if (mblnZaleziNaPoradi) * return mstrPoradiPrvku.CompareTo(other.PoradiPrvku); * foreach (KeyValuePair<T, int> kvp in mgdcPoctyPrvku) { * if (gdc.ContainsKey(kvp.Key)) { * if (kvp.Value != gdc[kvp.Key]) * return kvp.Value.CompareTo(gdc[kvp.Key]); * } * else { return 1; } * } * return 0; * * } * #endregion */ #region IComparable<FrekvencePrvku<T,K>> Members public int CompareTo(FrekvencePrvku <T, K> other) { throw new NotImplementedException(); }