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

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

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

origin: net.openhft/koloboke-impl-jdk8

@Override
public void replaceAll(
    BiFunction<? super Integer, ? super Float, ? extends Float> function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (i)) << LONG_SCALE_SHIFT), Float.floatToIntBits(function.apply(key, Float.intBitsToFloat((int) (entry >>> 32)))));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void forEach(BiConsumer<? super Integer, ? super Float> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      action.accept(key, Float.intBitsToFloat((int) (entry >>> 32)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

public void replaceAll(
    BiFunction<? super Integer, ? super Float, ? extends Float> function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (i)) << LONG_SCALE_SHIFT), Float.floatToIntBits(function.apply(key, Float.intBitsToFloat((int) (entry >>> 32)))));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void replaceAll(IntFloatToFloatFunction function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (i)) << LONG_SCALE_SHIFT), Float.floatToIntBits(function.applyAsFloat(key, Float.intBitsToFloat((int) (entry >>> 32)))));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void replaceAll(IntFloatToFloatFunction function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (i)) << LONG_SCALE_SHIFT), Float.floatToIntBits(function.applyAsFloat(key, Float.intBitsToFloat((int) (entry >>> 32)))));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

public void forEach(BiConsumer<? super Integer, ? super Float> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      action.accept(key, Float.intBitsToFloat((int) (entry >>> 32)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public String toString() {
  if (isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      sb.append(' ');
      sb.append(key);
      sb.append('=');
      sb.append(Float.intBitsToFloat((int) (entry >>> 32)));
      sb.append(',');
      if (++elementCount == 8) {
        int expectedLength = sb.length() * (size() / 8);
        sb.ensureCapacity(expectedLength + (expectedLength / 2));
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  sb.setCharAt(0, '{');
  sb.setCharAt(sb.length() - 1, '}');
  return sb.toString();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void forEach(IntFloatConsumer action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      action.accept(key, Float.intBitsToFloat((int) (entry >>> 32)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void forEach(IntFloatConsumer action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      action.accept(key, Float.intBitsToFloat((int) (entry >>> 32)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public String toString() {
  if (isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      sb.append(' ');
      sb.append(key);
      sb.append('=');
      sb.append(Float.intBitsToFloat((int) (entry >>> 32)));
      sb.append(',');
      if (++elementCount == 8) {
        int expectedLength = sb.length() * (size() / 8);
        sb.ensureCapacity(expectedLength + (expectedLength / 2));
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  sb.setCharAt(0, '{');
  sb.setCharAt(sb.length() - 1, '}');
  return sb.toString();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void reversePutAllTo(InternalIntFloatMapOps m) {
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      m.justPut(key, (int) (entry >>> 32));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean forEachWhile(IntFloatPredicate predicate) {
  if (predicate == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return true;
  boolean terminated = false;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      if (!predicate.test(key, Float.intBitsToFloat((int) (entry >>> 32)))) {
        terminated = true;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return !terminated;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public boolean forEachWhile(IntFloatPredicate predicate) {
  if (predicate == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return true;
  boolean terminated = false;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      if (!predicate.test(key, Float.intBitsToFloat((int) (entry >>> 32)))) {
        terminated = true;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return !terminated;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void reversePutAllTo(InternalIntFloatMapOps m) {
  if (isEmpty())
    return;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      m.justPut(key, (int) (entry >>> 32));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean allEntriesContainingIn(InternalIntFloatMapOps m) {
  if (isEmpty())
    return true;
  boolean containsAll = true;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      if (!m.containsEntry(key, (int) (entry >>> 32))) {
        containsAll = false;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return containsAll;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public boolean allEntriesContainingIn(InternalIntFloatMapOps m) {
  if (isEmpty())
    return true;
  boolean containsAll = true;
  int mc = modCount();
  int free = freeValue;
  long[] tab = table;
  long entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    int key;
    if ((key = (int) (entry = tab[i])) != free) {
      if (!m.containsEntry(key, (int) (entry >>> 32))) {
        containsAll = false;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return containsAll;
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashParallelKVIntFloatMapGOisEmpty

Popular methods of UpdatableQHashParallelKVIntFloatMapGO

  • changeFree
  • clear
  • containsEntry
  • containsValue
  • copy
  • currentLoad
  • defaultValue
  • hashCode
  • hashConfig
  • incrementModCount
  • init
  • initForRehash
  • init,
  • initForRehash,
  • insert,
  • modCount,
  • postInsertHook,
  • put,
  • putAll,
  • remove,
  • removeValue

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • findViewById (Activity)
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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