in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K key = keyTypeAdapter.read(in); V value = valueTypeAdapter.read(in);
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
@Override public Properties read(JsonReader in) throws IOException { Properties props = new Properties(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); props.setProperty(in.nextString(), in.nextString()); } in.endObject(); return props; }
public Map<K, V> read(JsonReader in) throws IOException { ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } ImmutableMap.Builder<K, V> result = ImmutableMap.builder(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) result.put(name, value); } in.endObject(); return result.build(); }
@Override public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } Map<K, V> result = Maps.newHashMap(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) { // If there are repeated keys, overwrite them to only keep the // last one result.put(name, value); } } in.endObject(); return ImmutableMap.copyOf(result); } }
@Override public Map<K, V> read(JsonReader in) throws IOException { if (in.peek() == JsonToken.NULL) { in.nextNull(); return null; } Map<K, V> result = Maps.newHashMap(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K name = keyAdapter.read(in); V value = valueAdapter.read(in); if (value != null) { // If there are repeated keys, overwrite them to only keep the // last one result.put(name, value); } } in.endObject(); return ImmutableMap.copyOf(result); } }
while (in.hasNext()) JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in);
public Map<String, Value> readData(JsonReader in) throws IOException { JsonToken peek = in.peek(); if (peek == JsonToken.NULL) { in.nextNull(); return new HashMap<>(); } if (peek != JsonToken.BEGIN_OBJECT) { throw new JsonSyntaxException("data must be a Map<String, String>."); } Map<String, Value> data = new LinkedHashMap<>(); in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); String key = in.nextString(); Value value = VALUE_TYPE_ADAPTER.read(in); Value compiled = AttributeProcessor.staticPreCompile(value, context, PROTEUS_INSTANCE_HOLDER.getProteus().functions); if (compiled != null) { value = compiled; } Value replaced = data.put(key, value); if (replaced != null) { throw new JsonSyntaxException("duplicate key: " + key); } } in.endObject(); return data; } }
in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K key = keyTypeAdapter.read(in); V value = valueTypeAdapter.read(in);
in.beginObject(); while (in.hasNext()) { JsonReaderInternalAccess.INSTANCE.promoteNameToValue(in); K key = keyTypeAdapter.read(in); V value = valueTypeAdapter.read(in);