Tabnine Logo
HashMap.secondaryHash
Code IndexAdd Tabnine to your IDE (free)

How to use
secondaryHash
method
in
java.util.HashMap

Best Java code snippets using java.util.HashMap.secondaryHash (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: robovm/robovm

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: robovm/robovm

  return removeNullKey();
int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: robovm/robovm

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: robovm/robovm

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.jtransc/jtransc-rt

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equals(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equals(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: MobiVM/robovm

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: com.bugvm/bugvm-rt

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: ibinti/bugvm

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: com.gluonhq/robovm-rt

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: FlexoVM/flexovm

/**
 * Returns true if this map contains the specified mapping.
 */
private boolean containsMapping(Object key, Object value) {
  if (key == null) {
    HashMapEntry<K, V> e = entryForNullKey;
    return e != null && Objects.equal(value, e.value);
  }
  int hash = secondaryHash(key);
  HashMapEntry<K, V>[] tab = table;
  int index = hash & (tab.length - 1);
  for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {
    if (e.hash == hash && key.equals(e.key)) {
      return Objects.equal(value, e.value);
    }
  }
  return false; // No entry for key
}
origin: ibinti/bugvm

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: ibinti/bugvm

  return removeNullKey();
int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: MobiVM/robovm

  return removeNullKey();
int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.bugvm/bugvm-rt

  return removeNullKey();
int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.gluonhq/robovm-rt

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.mobidevelop.robovm/robovm-rt

  return removeNullKey();
int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.jtransc/jtransc-rt

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
origin: com.mobidevelop.robovm/robovm-rt

int hash = secondaryHash(key);
HashMapEntry<K, V>[] tab = table;
int index = hash & (tab.length - 1);
java.utilHashMapsecondaryHash

Popular methods of HashMap

  • <init>
    Constructs a new HashMap instance containing the mappings from the specified map.
  • put
    Maps the specified key to the specified value.
  • get
    Returns the value of the mapping with the specified key.
  • containsKey
    Returns whether this map contains the specified key.
  • keySet
    Returns a set of the keys contained in this map. The set is backed by this map so changes to one are
  • remove
  • entrySet
    Returns a set containing all of the mappings in this map. Each mapping is an instance of Map.Entry.
  • values
    Returns a collection of the values contained in this map. The collection is backed by this map so ch
  • size
    Returns the number of elements in this map.
  • clear
    Removes all mappings from this hash map, leaving it empty.
  • isEmpty
    Returns whether this map is empty.
  • putAll
    Copies all the mappings in the specified map to this map. These mappings will replace all mappings t
  • isEmpty,
  • putAll,
  • clone,
  • toString,
  • containsValue,
  • equals,
  • hashCode,
  • computeIfAbsent,
  • getOrDefault,
  • forEach

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • From CI to AI: The AI layer in your organization
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