Most of key methods are implemented in LazyFieldLite but this class can contain
default instance of the message to provide hashCode(), euqals() and toString().
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | LazyField.LazyEntry<K>
LazyEntry and LazyIterator are used to encapsulate the LazyField, when users iterate all fields from FieldSet. |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final MessageLite | defaultInstance
Carry a message's default instance which is used by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsDefaultInstance()
Overrides com. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides com. |
| public MessageLite | |
| public int | hashCode()
Overrides com. |
| public String |
| defaultInstance | back to summary |
|---|---|
| private final MessageLite defaultInstance Carry a message's default instance which is used by | |
| LazyField | back to summary |
|---|---|
| public LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) | |
| containsDefaultInstance | back to summary |
|---|---|
| public boolean containsDefaultInstance() Overrides com. Doc from com. Determines whether this LazyFieldLite instance represents the default instance of this type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getValue | back to summary |
|---|---|
| public MessageLite getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LazyField | |
| public K | |
| public Object | |
| public Object | setValue(Object
new value to be stored in this entry value)Implements java. |
| entry | back to summary |
|---|---|
| private Map. | |
| LazyEntry | back to summary |
|---|---|
| private LazyEntry(Map. | |
| getField | back to summary |
|---|---|
| public LazyField getField() | |
| getKey | back to summary |
|---|---|
| public K getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public Object setValue(Object value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Map. | |
| public void | remove()
Overrides default java. |
| iterator | back to summary |
|---|---|
| private Iterator<Map. | |
| LazyIterator | back to summary |
|---|---|
| public LazyIterator(Iterator<Map. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Map. Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |