public class LazyField extends LazyFieldLite
LazyFieldLite but this class
can contain default instance of the message to provide hashCode(),
euqals() and toString().| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LazyField.LazyEntry<K>
LazyEntry and LazyIterator are used to encapsulate the LazyField, when
users iterate all fields from FieldSet.
|
(package private) static class |
LazyField.LazyIterator<K> |
| Modifier and Type | Field and Description |
|---|---|
private MessageLite |
defaultInstance
Carry a message's default instance which is used by
hashCode(), euqals() and
toString(). |
value| Constructor and Description |
|---|
LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDefaultInstance()
Determines whether this LazyFieldLite instance represents the default instance of this type.
|
boolean |
equals(java.lang.Object obj) |
MessageLite |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
clear, ensureInitialized, fromValue, getSerializedSize, getValue, merge, mergeFrom, set, setByteString, setValue, toByteStringprivate final MessageLite defaultInstance
hashCode(), euqals() and
toString().public LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
public boolean containsDefaultInstance()
LazyFieldLitecontainsDefaultInstance in class LazyFieldLitepublic MessageLite getValue()
public int hashCode()
hashCode in class LazyFieldLitepublic boolean equals(java.lang.Object obj)
equals in class LazyFieldLitepublic java.lang.String toString()
toString in class java.lang.Object