Codota Logo
MapField.convertListToMap
Code IndexAdd Codota to your IDE (free)

How to use
convertListToMap
method
in
com.google.protobuf.MapField

Best Java code snippets using com.google.protobuf.MapField.convertListToMap (Showing top 4 results out of 315)

  • Common ways to obtain MapField
private void myMethod () {
MapField m =
  • Codota IconMapEntry defaultEntry;MapField.newMapField(defaultEntry)
  • Codota IconMapEntry defaultEntry;MapField.emptyMapField(defaultEntry)
  • Smart code suggestions by Codota
}
origin: com.google.protobuf/protobuf-java

/** Gets a mutable Map view of this MapField. */
public Map<K, V> getMutableMap() {
 if (mode != StorageMode.MAP) {
  if (mode == StorageMode.LIST) {
   mapData = convertListToMap(listData);
  }
  listData = null;
  mode = StorageMode.MAP;
 }
 return mapData;
}
origin: com.google.protobuf/protobuf-java

/** Returns the content of this MapField as a read-only Map. */
public Map<K, V> getMap() {
 if (mode == StorageMode.LIST) {
  synchronized (this) {
   if (mode == StorageMode.LIST) {
    mapData = convertListToMap(listData);
    mode = StorageMode.BOTH;
   }
  }
 }
 return Collections.unmodifiableMap(mapData);
}
origin: yeriomin/play-store-api

/** Gets a mutable Map view of this MapField. */
public Map<K, V> getMutableMap() {
 if (mode != StorageMode.MAP) {
  if (mode == StorageMode.LIST) {
   mapData = convertListToMap(listData);
  }
  listData = null;
  mode = StorageMode.MAP;
 }
 return mapData;
}
origin: yeriomin/play-store-api

/** Returns the content of this MapField as a read-only Map. */
public Map<K, V> getMap() {
 if (mode == StorageMode.LIST) {
  synchronized (this) {
   if (mode == StorageMode.LIST) {
    mapData = convertListToMap(listData);
    mode = StorageMode.BOTH;
   }
  }
 }
 return Collections.unmodifiableMap(mapData);
}
com.google.protobufMapFieldconvertListToMap

Popular methods of MapField

  • getMap
    Returns the content of this MapField as a read-only Map.
  • getMutableMap
    Gets a mutable Map view of this MapField.
  • isMutable
    Returns whether this field can be modified.
  • clear
  • copy
    Returns a deep copy of this MapField.
  • emptyMapField
    Returns an immutable empty MapField.
  • makeImmutable
    Makes this list immutable. All subsequent modifications will throw an UnsupportedOperationException.
  • mergeFrom
  • newMapField
    Creates a new mutable empty MapField.
  • equals
  • hashCode
  • <init>
  • hashCode,
  • <init>,
  • convertKeyAndValueToMessage,
  • convertMapToList,
  • convertMessageToKeyAndValue,
  • getList,
  • getMapEntryMessageDefaultInstance,
  • getMutableList

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now