Tabnine Logo
UpdatableLHashParallelKVObjObjMapSO.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
com.koloboke.collect.impl.hash.UpdatableLHashParallelKVObjObjMapSO

Best Java code snippets using com.koloboke.collect.impl.hash.UpdatableLHashParallelKVObjObjMapSO.isEmpty (Showing top 4 results out of 315)

origin: com.koloboke/koloboke-impl-jdk6-7

private int nullValueIndex() {
  if (this.isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  Object[] tab = table;
  for (int i = tab.length - 2; i >= 0; i -= 2) {
    if (tab[i] != FREE) {
      if (tab[i + 1] == null) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
origin: com.koloboke/koloboke-impl-jdk8

private int nullValueIndex() {
  if (this.isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  Object[] tab = table;
  for (int i = tab.length - 2; i >= 0; i -= 2) {
    if (tab[i] != FREE) {
      if (tab[i + 1] == null) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
origin: com.koloboke/koloboke-impl-jdk8

int valueIndex(@Nullable Object value) {
  if (value == null)
    return nullValueIndex();
  if (this.isEmpty())
    return -1;
  V val = (V) value;
  int index = -1;
  int mc = modCount();
  Object[] tab = table;
  for (int i = tab.length - 2; i >= 0; i -= 2) {
    if (tab[i] != FREE) {
      if (valueEquals(val, (V) tab[i + 1])) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
origin: com.koloboke/koloboke-impl-jdk6-7

int valueIndex(@Nullable Object value) {
  if (value == null)
    return nullValueIndex();
  if (this.isEmpty())
    return -1;
  V val = (V) value;
  int index = -1;
  int mc = modCount();
  Object[] tab = table;
  for (int i = tab.length - 2; i >= 0; i -= 2) {
    if (tab[i] != FREE) {
      if (valueEquals(val, (V) tab[i + 1])) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
com.koloboke.collect.impl.hashUpdatableLHashParallelKVObjObjMapSOisEmpty

Popular methods of UpdatableLHashParallelKVObjObjMapSO

  • clear
  • copy
  • incrementModCount
  • insertNullKey
  • keyEquals
  • keyHashCode
  • modCount
  • move
  • nullValueIndex
  • postInsertHook
  • valueEquals
  • valueHashCode
  • valueEquals,
  • valueHashCode,
  • valueIndex

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JOptionPane (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 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