public static class AbstractJsonFactoryTest.ExtendsGenericJson extends GenericJson
GenericData.FlagsAbstractMap.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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic AbstractJsonFactoryTest.ExtendsGenericJson set(String fieldName, Object value)
GenericDatanull) 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 GenericJsonCopyright © 2011–2021 Google. All rights reserved.