public static Facets mapFacets(Pod pod, FAttrs.FFacet[] ffacets) { if (ffacets == null || ffacets.Length == 0) return empty(); Hashtable map = new Hashtable(); for (int i=0; i<ffacets.Length; ++i) { FAttrs.FFacet ff = ffacets[i]; Type t = pod.findType(ff.type); map[t] = ff.val; } return new Facets(map); }
public static Facets mapFacets(Pod pod, FAttrs.FFacet[] ffacets) { if (ffacets == null || ffacets.Length == 0) { return(empty()); } Hashtable map = new Hashtable(); for (int i = 0; i < ffacets.Length; ++i) { FAttrs.FFacet ff = ffacets[i]; Type t = pod.findType(ff.type); map[t] = ff.val; } return(new Facets(map)); }