Commit b25d39e
Expose an iterator for
This iterates over the wrapper class `GeneratedMessage.ExtendableMessage.FieldValue` to keep the mutable underlying structure of the extensions FieldSet hidden. The entries' values exposed here are a subset of the values exposed by `GeneratedMessage.getallFields`. This iterator has less overhead than calling allFields and does not create a new map object.
PiperOrigin-RevId: 786884890GeneratedMessage.ExtendableMessage.extensions
1 parent 6754bf4 commit b25d39e
File tree
1 file changed
+47
-0
lines changed- java/core/src/main/java/com/google/protobuf
1 file changed
+47
-0
lines changedLines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
952 | 960 | | |
953 | 961 | | |
954 | 962 | | |
| |||
1232 | 1240 | | |
1233 | 1241 | | |
1234 | 1242 | | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1235 | 1282 | | |
1236 | 1283 | | |
1237 | 1284 | | |
| |||
0 commit comments