Tabnine Logo
Byte2ObjectOpenHashMap.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
it.unimi.dsi.fastutil.bytes.Byte2ObjectOpenHashMap

Best Java code snippets using it.unimi.dsi.fastutil.bytes.Byte2ObjectOpenHashMap.put (Showing top 2 results out of 315)

origin: it.unimi.dsi/fastutil

/**
 * Creates a new hash map using the elements of two parallel arrays.
 *
 * @param k
 *            the array of keys of the new hash map.
 * @param v
 *            the array of corresponding values in the new hash map.
 * @param f
 *            the load factor.
 * @throws IllegalArgumentException
 *             if {@code k} and {@code v} have different lengths.
 */
public Byte2ObjectOpenHashMap(final byte[] k, final V[] v, final float f) {
  this(k.length, f);
  if (k.length != v.length)
    throw new IllegalArgumentException(
        "The key array and the value array have different lengths (" + k.length + " and " + v.length + ")");
  for (int i = 0; i < k.length; i++)
    this.put(k[i], v[i]);
}
/**
origin: dmart28/reveno

public void put(byte[] key, T value) {
  Node n = root;
  for (int i = 0; i < key.length; i++) {
    Node nn = n.map.get(key[i]);
    if (nn == null) {
      nn = new Node();
      n.map.put(key[i], nn);
    }
    n = nn;
    if (i == key.length - 1) {
      n.value = value;
    }
  }
}
it.unimi.dsi.fastutil.bytesByte2ObjectOpenHashMapput

Javadoc

Popular methods of Byte2ObjectOpenHashMap

  • <init>
    Creates a new hash map using the elements of two parallel arrays.
  • clear
  • containsValue
  • ensureCapacity
  • find
  • get
  • insert
  • keySet
  • putAll
  • realSize
  • rehash
    Rehashes the map. This method implements the basic rehashing strategy, and may be overridden by subc
  • removeEntry
  • rehash,
  • removeEntry,
  • removeNullEntry,
  • shiftKeys,
  • size,
  • tryCapacity

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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