public static class AbstractJsonFactoryTest.ExtendsGenericJson extends GenericJson
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ExtendsGenericJson() |
Modifier and Type | Method and Description |
---|---|
AbstractJsonFactoryTest.ExtendsGenericJson |
set(String fieldName,
Object value)
Sets the given field value (may be
null ) for the given field name. |
clone, getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
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–2021 Google. All rights reserved.