public static class AbstractJsonFactoryTest.ExtendsGenericJson extends GenericJson
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
GenericData.Flags
Constructor | Description |
---|---|
ExtendsGenericJson() |
Modifier and Type | Method | Description |
---|---|---|
AbstractJsonFactoryTest.ExtendsGenericJson |
set(String fieldName,
Object value) |
Sets the given field value (may be
null ) for the given field name. |
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clone, getFactory, setFactory, toPrettyString, toString
public AbstractJsonFactoryTest.ExtendsGenericJson set(String fieldName, Object value)
GenericData
null
) for the given field name. Any existing value
for the field will be overwritten. It may be more slightly more efficient than
GenericData.put(String, Object)
because it avoids accessing the field's original value.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
set
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.