Tabnine Logo
MapField.convertListToMap
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JFrame (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now