Tabnine Logo
Int2ObjectMaps.synchronize
Code IndexAdd Tabnine to your IDE (free)

How to use
synchronize
method
in
it.unimi.dsi.fastutil.ints.Int2ObjectMaps

Best Java code snippets using it.unimi.dsi.fastutil.ints.Int2ObjectMaps.synchronize (Showing top 2 results out of 315)

origin: org.apache.giraph/giraph-core

@Override
protected Int2ObjectMap<OutEdges<IntWritable, E>> getPartitionEdges(
  int partitionId) {
 Int2ObjectMap<OutEdges<IntWritable, E>> partitionEdges =
   (Int2ObjectMap<OutEdges<IntWritable, E>>)
     transientEdges.get(partitionId);
 if (partitionEdges == null) {
  Int2ObjectMap<OutEdges<IntWritable, E>> newPartitionEdges =
    Int2ObjectMaps.synchronize(
      new Int2ObjectOpenHashMap<OutEdges<IntWritable, E>>());
  partitionEdges = (Int2ObjectMap<OutEdges<IntWritable, E>>)
    transientEdges.putIfAbsent(partitionId,
      newPartitionEdges);
  if (partitionEdges == null) {
   partitionEdges = newPartitionEdges;
  }
 }
 return partitionEdges;
}
origin: com.github.monnetproject/translation.fidel

public FidelDecoderWrapper(IntegerLanguageModel languageModel, DecoderWeights weights) {
  this.languageModel = languageModel;
  this.srcWordMap = Object2IntMaps.synchronize(new Object2IntOpenHashMap<String>());
  this.srcInvMap = Int2ObjectMaps.synchronize(new Int2ObjectOpenHashMap<String>());
  this.trgWordMap = languageModel.wordMap();
  this.invWordMap = languageModel.invWordMap();
  this.weights = weights;
}
it.unimi.dsi.fastutil.intsInt2ObjectMapssynchronize

Javadoc

Returns a synchronized type-specific map backed by the given type-specific map.

Popular methods of Int2ObjectMaps

  • fastIterator
    Returns an iterator that will be FastEntrySet, if possible, on the Map#entrySet() of the provided ma
  • unmodifiable
    Returns an unmodifiable type-specific map backed by the given type-specific map.

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • getContentResolver (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
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