public virtual ICollection <K5> FifthKeySet() { ICollection <K5> keys = Generics.NewHashSet(); foreach (K1 k1 in map.Keys) { FourDimensionalMap <K2, K3, K4, K5, V> m4 = map[k1]; foreach (K2 k2 in m4.FirstKeySet()) { ThreeDimensionalMap <K3, K4, K5, V> m3 = m4.Get(k2); foreach (K3 k3 in m3.FirstKeySet()) { TwoDimensionalMap <K4, K5, V> m2 = m3.Get(k3); foreach (K4 k4 in m2.FirstKeySet()) { Sharpen.Collections.AddAll(keys, m2.Get(k4).Keys); } } } } return(keys); }
public static ICollection <T> AsSet <T>(params T[] o) { return(Generics.NewHashSet(Arrays.AsList(o))); }
public override ICollection <K> NewSet(ICollection <K> init) { return(Generics.NewHashSet(init)); }
/// <summary>Return a Set containing the same elements as the specified array.</summary> public static ICollection <T> AsSet <T>(T[] a) { return(Generics.NewHashSet(Arrays.AsList(a))); }
protected internal CollectionAcceptFilter(ICollection <E> c, bool judgment) { this.args = Generics.NewHashSet(c); this.judgment = judgment; }
public override ICollection <T> NewCollection() { return(Generics.NewHashSet()); }