Tabnine Logo
UpdatableLHashSeparateKVLongShortMapSO
Code IndexAdd Tabnine to your IDE (free)

How to use
UpdatableLHashSeparateKVLongShortMapSO
in
net.openhft.koloboke.collect.impl.hash

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

origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean containsValue(Object value) {
  return containsValue(((Short) value).shortValue());
}
origin: net.openhft/koloboke-impl-jdk8

int valueIndex(short value) {
  if (isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  long free = freeValue;
  long[] keys = set;
  short[] 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-jdk6-7

@Override public
boolean containsValue(short value) {
  return valueIndex(value) >= 0;
}
origin: net.openhft/koloboke-impl-jdk8

int insert(long key, short value) {
  long free;
  if (key == (free = freeValue)) {
    free = changeFree();
  incrementModCount();
  keys[index] = key;
  values[index] = value;
  postInsertHook();
  return -1;
origin: net.openhft/koloboke-impl-jdk8

@Override
final void copy(SeparateKVLongShortLHash hash) {
  int myMC = modCount(), hashMC = hash.modCount();
  super.copy(hash);
  if (myMC != modCount() || hashMC != hash.modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
final void move(SeparateKVLongShortLHash hash) {
  int myMC = modCount(), hashMC = hash.modCount();
  super.move(hash);
  if (myMC != modCount() || hashMC != hash.modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void clear() {
  int mc = modCount() + 1;
  super.clear();
  if (mc != modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

int insert(long key, short value) {
  long free;
  if (key == (free = freeValue)) {
    free = changeFree();
  incrementModCount();
  keys[index] = key;
  values[index] = value;
  postInsertHook();
  return -1;
origin: net.openhft/koloboke-impl-jdk6-7

@Override
final void copy(SeparateKVLongShortLHash hash) {
  int myMC = modCount(), hashMC = hash.modCount();
  super.copy(hash);
  if (myMC != modCount() || hashMC != hash.modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
final void move(SeparateKVLongShortLHash hash) {
  int myMC = modCount(), hashMC = hash.modCount();
  super.move(hash);
  if (myMC != modCount() || hashMC != hash.modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void clear() {
  int mc = modCount() + 1;
  super.clear();
  if (mc != modCount())
    throw new ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

int valueIndex(short value) {
  if (isEmpty())
    return -1;
  int index = -1;
  int mc = modCount();
  long free = freeValue;
  long[] keys = set;
  short[] 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-jdk6-7

@Override
public boolean containsValue(Object value) {
  return containsValue(((Short) value).shortValue());
}
origin: net.openhft/koloboke-impl-jdk8

@Override public
boolean containsValue(short value) {
  return valueIndex(value) >= 0;
}
net.openhft.koloboke.collect.impl.hashUpdatableLHashSeparateKVLongShortMapSO

Most used methods

  • changeFree
  • clear
  • containsValue
  • copy
  • incrementModCount
  • isEmpty
  • modCount
  • move
  • postInsertHook
  • valueIndex

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • putExtra (Intent)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • CodeWhisperer 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