public class MapEntryLite<K,V> extends AbstractMessageLite
Modifier and Type | Class and Description |
---|---|
static class |
MapEntryLite.Builder<K,V>
Builder used to create
MapEntryLite messages. |
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
MapEntryLite<K,V> |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
K |
getKey() |
Parser<MapEntryLite<K,V>> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
V |
getValue() |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
MapEntryLite.Builder<K,V> |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
static <K,V> MapEntryLite<K,V> |
newDefaultInstance(WireFormat.FieldType keyType,
K defaultKey,
WireFormat.FieldType valueType,
V defaultValue)
Creates a default MapEntryLite message instance.
|
MapEntryLite.Builder<K,V> |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
public K getKey()
public V getValue()
public static <K,V> MapEntryLite<K,V> newDefaultInstance(WireFormat.FieldType keyType, K defaultKey, WireFormat.FieldType valueType, V defaultValue)
public void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLite
output
. This does not
flush or close the stream.java.io.IOException
public int getSerializedSize()
MessageLite
public Parser<MapEntryLite<K,V>> getParserForType()
MessageLite
public MapEntryLite.Builder<K,V> newBuilderForType()
MessageLite
public MapEntryLite.Builder<K,V> toBuilder()
MessageLite
public MapEntryLite<K,V> getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated message classes in that
this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific
class. They return the same thing.public boolean isInitialized()
MessageLiteOrBuilder