Class 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 parses it on-demand.

    Most methods are implemented in LazyFieldLite but this class can contain a default instance of the message to provide hashCode(), equals(), and toString().

    • Field Detail

      • defaultInstance

        private final MessageLite defaultInstance
        Carry a message's default instance which is used by hashCode(), equals(), and toString().
    • Method Detail

      • containsDefaultInstance

        public boolean containsDefaultInstance()
        Description copied from class: LazyFieldLite
        Determines whether this LazyFieldLite instance represents the default instance of this type.
        Overrides:
        containsDefaultInstance in class LazyFieldLite
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class LazyFieldLite
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object