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

How to use
isEmpty
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableLHashSeparateKVObjIntMapSO

Best Java code snippets using net.openhft.koloboke.collect.impl.hash.UpdatableLHashSeparateKVObjIntMapSO.isEmpty (Showing top 2 results out of 315)

origin: net.openhft/koloboke-impl-jdk6-7

int valueIndex(int value) {
  if (isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  Object[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    if (keys[i] != FREE) {
      if (value == vals[i]) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
origin: net.openhft/koloboke-impl-jdk8

int valueIndex(int value) {
  if (isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  Object[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    if (keys[i] != FREE) {
      if (value == vals[i]) {
        index = i;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return index;
}
net.openhft.koloboke.collect.impl.hashUpdatableLHashSeparateKVObjIntMapSOisEmpty

Popular methods of UpdatableLHashSeparateKVObjIntMapSO

  • clear
  • containsValue
  • copy
  • incrementModCount
  • insertNullKey
  • keyEquals
  • keyHashCode
  • modCount
  • move
  • postInsertHook
  • valueIndex
  • valueIndex

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Github Copilot alternatives
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