com.google.protobuf.LazyField.LazyIterator Java Examples
The following examples show how to use
com.google.protobuf.LazyField.LazyIterator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FieldSet.java From play-store-api with GNU General Public License v3.0 | 5 votes |
/** * Get an iterator to the field map. This iterator should not be leaked out * of the protobuf library as it is not protected from mutation when fields * is not immutable. */ public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
Example #2
Source File: FieldSet.java From travelguide with Apache License 2.0 | 5 votes |
/** * Get an iterator to the field map. This iterator should not be leaked out * of the protobuf library as it is not protected from mutation when fields * is not immutable. */ public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
Example #3
Source File: FieldSet.java From 365browser with Apache License 2.0 | 5 votes |
/** * Get an iterator to the field map. This iterator should not be leaked out * of the protobuf library as it is not protected from mutation when fields * is not immutable. */ public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
Example #4
Source File: FieldSet.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Get an iterator to the field map. This iterator should not be leaked out * of the protobuf library as it is not protected from mutation when fields * is not immutable. */ public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }
Example #5
Source File: FieldSet.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * Get an iterator to the field map. This iterator should not be leaked out * of the protobuf library as it is not protected from mutation when fields * is not immutable. */ public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() { if (hasLazyField) { return new LazyIterator<FieldDescriptorType>( fields.entrySet().iterator()); } return fields.entrySet().iterator(); }