com.google.protobuf
Class LazyField
java.lang.Object
com.google.protobuf.LazyFieldLite
com.google.protobuf.LazyField
public class LazyField
- extends LazyFieldLite
LazyField encapsulates the logic of lazily parsing message fields. It stores
the message in a ByteString initially and then parse it on-demand.
Most of key methods are implemented in LazyFieldLite
but this class
can contain default instance of the message to provide hashCode()
,
euqals()
and toString()
.
- Author:
- xiangl@google.com (Xiang Li)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LazyField
public LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes)
containsDefaultInstance
public boolean containsDefaultInstance()
- Overrides:
containsDefaultInstance
in class LazyFieldLite
getValue
public MessageLite getValue()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object