Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.MapFieldLite< K, V > Class Template Reference
Inheritance diagram for com.google.protobuf.MapFieldLite< K, V >:
Inheritance graph
[legend]

Public Member Functions

void clear ()
 
Set< Map.Entry< K, V > > entrySet ()
 
boolean equals (Object object)
 
int hashCode ()
 
boolean isMutable ()
 
void makeImmutable ()
 
void mergeFrom (MapFieldLite< K, V > other)
 
MapFieldLite< K, V > mutableCopy ()
 
put (K key, V value)
 
put (Map.Entry< K, V > entry)
 
void putAll (Map<? extends K, ? extends V > m)
 
remove (Object key)
 

Static Public Member Functions

static< K, V > MapFieldLite< K, V > emptyMapField ()
 

Private Member Functions

void ensureMutable ()
 
 MapFieldLite ()
 
 MapFieldLite (Map< K, V > mapData)
 

Static Private Member Functions

static int calculateHashCodeForObject (Object a)
 
static void checkForNullKeysAndValues (Map<?, ?> m)
 
static Object copy (Object object)
 
static boolean equals (Object a, Object b)
 

Private Attributes

boolean isMutable
 

Static Private Attributes

static final MapFieldLite EMPTY_MAP_FIELD = new MapFieldLite()
 

Detailed Description

Internal representation of map fields in generated lite-runtime messages.

This class is a protobuf implementation detail. Users shouldn't use this class directly.

Definition at line 47 of file MapFieldLite.java.

Constructor & Destructor Documentation

◆ MapFieldLite() [1/2]

Definition at line 51 of file MapFieldLite.java.

◆ MapFieldLite() [2/2]

com.google.protobuf.MapFieldLite< K, V >.MapFieldLite ( Map< K, V >  mapData)
inlineprivate

Definition at line 55 of file MapFieldLite.java.

Member Function Documentation

◆ calculateHashCodeForObject()

static int com.google.protobuf.MapFieldLite< K, V >.calculateHashCodeForObject ( Object  a)
inlinestaticprivate

Definition at line 161 of file MapFieldLite.java.

◆ checkForNullKeysAndValues()

static void com.google.protobuf.MapFieldLite< K, V >.checkForNullKeysAndValues ( Map<?, ?>  m)
inlinestaticprivate

Definition at line 118 of file MapFieldLite.java.

◆ clear()

void com.google.protobuf.MapFieldLite< K, V >.clear ( )
inline

Definition at line 87 of file MapFieldLite.java.

◆ copy()

static Object com.google.protobuf.MapFieldLite< K, V >.copy ( Object  object)
inlinestaticprivate

Definition at line 190 of file MapFieldLite.java.

◆ emptyMapField()

static <K, V> MapFieldLite<K, V> com.google.protobuf.MapFieldLite< K, V >.emptyMapField ( )
inlinestatic

Returns an singleton immutable empty MapFieldLite instance.

Definition at line 69 of file MapFieldLite.java.

◆ ensureMutable()

void com.google.protobuf.MapFieldLite< K, V >.ensureMutable ( )
inlineprivate

Definition at line 230 of file MapFieldLite.java.

◆ entrySet()

Set<Map.Entry<K, V> > com.google.protobuf.MapFieldLite< K, V >.entrySet ( )
inline

Definition at line 82 of file MapFieldLite.java.

◆ equals() [1/2]

static boolean com.google.protobuf.MapFieldLite< K, V >.equals ( Object  a,
Object  b 
)
inlinestaticprivate

Definition at line 125 of file MapFieldLite.java.

◆ equals() [2/2]

boolean com.google.protobuf.MapFieldLite< K, V >.equals ( Object  object)
inline

Checks whether two map fields are equal.

Definition at line 157 of file MapFieldLite.java.

◆ hashCode()

int com.google.protobuf.MapFieldLite< K, V >.hashCode ( )
inline

Definition at line 186 of file MapFieldLite.java.

◆ isMutable()

boolean com.google.protobuf.MapFieldLite< K, V >.isMutable ( )
inline

Returns whether this field can be modified.

Definition at line 226 of file MapFieldLite.java.

◆ makeImmutable()

void com.google.protobuf.MapFieldLite< K, V >.makeImmutable ( )
inline

Makes this field immutable. All subsequent modifications will throw an {}.

Definition at line 221 of file MapFieldLite.java.

◆ mergeFrom()

void com.google.protobuf.MapFieldLite< K, V >.mergeFrom ( MapFieldLite< K, V >  other)
inline

Definition at line 73 of file MapFieldLite.java.

◆ mutableCopy()

MapFieldLite<K, V> com.google.protobuf.MapFieldLite< K, V >.mutableCopy ( )
inline

Returns a deep copy of this map field.

Definition at line 213 of file MapFieldLite.java.

◆ put() [1/2]

V com.google.protobuf.MapFieldLite< K, V >.put ( K  key,
value 
)
inline

Definition at line 93 of file MapFieldLite.java.

◆ put() [2/2]

V com.google.protobuf.MapFieldLite< K, V >.put ( Map.Entry< K, V >  entry)
inline

Definition at line 101 of file MapFieldLite.java.

◆ putAll()

void com.google.protobuf.MapFieldLite< K, V >.putAll ( Map<? extends K, ? extends V >  m)
inline

Definition at line 106 of file MapFieldLite.java.

◆ remove()

V com.google.protobuf.MapFieldLite< K, V >.remove ( Object  key)
inline

Definition at line 113 of file MapFieldLite.java.

Member Data Documentation

◆ EMPTY_MAP_FIELD

final MapFieldLite com.google.protobuf.MapFieldLite< K, V >.EMPTY_MAP_FIELD = new MapFieldLite()
staticprivate

Definition at line 61 of file MapFieldLite.java.

◆ isMutable

boolean com.google.protobuf.MapFieldLite< K, V >.isMutable
private

Definition at line 49 of file MapFieldLite.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07