@Encoding.Naming(value = "setMap*") @Encoding.Init void setMap( final Map<K, V> in_map) { this.map = TreeMap.ofEntries(in_map.map(x -> x)); }
@Encoding.Naming(value = "setMap*") @Encoding.Init void setMap( final Map<K, V> in_map) { this.map = LinkedHashMap.ofEntries(in_map.map(x -> x)); }
@Encoding.Naming(value = "setMap*") @Encoding.Init void setMap( final Map<K, V> in_map) { this.map = TreeMap.ofEntries(in_map.map(x -> x)); }
@Encoding.Naming(value = "setMap*") @Encoding.Init void setMap( final Map<K, V> in_map) { this.map = HashMap.ofEntries(in_map.map(x -> x)); }
public Builder setMapRequiredAttributes(javaslang.collection.Map<SMFAttributeName, SMFSchemaAttribute> in_map) { this.requiredAttributes_map = TreeMap.ofEntries(in_map.map(x -> x)); return this; }
public Builder setMapOptionalAttributes(javaslang.collection.Map<SMFAttributeName, SMFSchemaAttribute> in_map) { this.optionalAttributes_map = TreeMap.ofEntries(in_map.map(x -> x)); return this; }
public Builder setMapOptionalAttributes(javaslang.collection.Map<SMFAttributeName, SMFSchemaAttribute> in_map) { this.optionalAttributes_map = TreeMap.ofEntries(in_map.map(x -> x)); return this; }
public Builder setMapRequiredAttributes(javaslang.collection.Map<SMFAttributeName, SMFSchemaAttribute> in_map) { this.requiredAttributes_map = TreeMap.ofEntries(in_map.map(x -> x)); return this; }
public Map<String, Value> getObject() { Json.JObject obj = delegate.getAsObjectOrEmpty("object"); return obj.value.map((k, v) -> Tuple.of(k, FromJsonValue.createValue(v))).toJavaMap(); }
@Override public Option<Errors> extract(Json.JObject node) { Function<Json.JArray, List<Error>> toErrors = arr -> arr. getListAsObjects(). map(factory::createError). toJavaList(); Option<Json.JObject> errors = node.getAsObject("errors"); return errors.map( j -> j.value.map((k, v) -> Tuple.of(k, toErrors.apply(v.asJsonArrayOrEmpty()))).toJavaMap() ).map(Errors::new); }