Tabnine Logo
UpdatableQHashSeparateKVCharFloatMapGO$MutableEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
UpdatableQHashSeparateKVCharFloatMapGO$MutableEntry
in
net.openhft.koloboke.collect.impl.hash

Best Java code snippets using net.openhft.koloboke.collect.impl.hash.UpdatableQHashSeparateKVCharFloatMapGO$MutableEntry (Showing top 20 results out of 315)

origin: net.openhft/koloboke-impl-jdk8

char key;
if ((key = keys[i]) != free) {
  a[resultIndex++] = (T) new MutableEntry(mc, i, key, vals[i]);
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public Float setValue(Float newValue) {
  if (modCount != modCount())
    throw new IllegalStateException();
  float oldValue = Float.intBitsToFloat(value);
  int unwrappedNewValue = Float.floatToIntBits(newValue);
  value = unwrappedNewValue;
  updateValueInTable(unwrappedNewValue);
  return oldValue;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public Map.Entry<Character, Float> next() {
  int nextI;
  if ((nextI = nextIndex) >= 0) {
    int mc;
    if ((mc = expectedModCount) == modCount()) {
      char[] keys = this.keys;
      char free = this.free;
      MutableEntry prev = next;
      while (--nextI >= 0) {
        char key;
        if ((key = keys[nextI]) != free) {
          next = new MutableEntry(mc, nextI, key, vals[nextI]);
          break;
        }
      }
      nextIndex = nextI;
      return prev;
    } else {
      throw new java.util.ConcurrentModificationException();
    }
  } else {
    throw new java.util.NoSuchElementException();
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

char key;
if ((key = keys[i]) != free) {
  a[resultIndex++] = (T) new MutableEntry(mc, i, key, vals[i]);
origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean forEachWhile(@Nonnull  Predicate<? super Map.Entry<Character, Float>> predicate) {
  if (predicate == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return true;
  boolean terminated = false;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      if (!predicate.test(new MutableEntry(mc, i, key, vals[i]))) {
        terminated = true;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return !terminated;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public Map.Entry<Character, Float> next() {
  int nextI;
  if ((nextI = nextIndex) >= 0) {
    int mc;
    if ((mc = expectedModCount) == modCount()) {
      char[] keys = this.keys;
      char free = this.free;
      MutableEntry prev = next;
      while (--nextI >= 0) {
        char key;
        if ((key = keys[nextI]) != free) {
          next = new MutableEntry(mc, nextI, key, vals[nextI]);
          break;
        }
      }
      nextIndex = nextI;
      return prev;
    } else {
      throw new java.util.ConcurrentModificationException();
    }
  } else {
    throw new java.util.NoSuchElementException();
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
@Nonnull
public final Object[] toArray() {
  int size = size();
  Object[] result = new Object[size];
  if (size == 0)
    return result;
  int resultIndex = 0;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      result[resultIndex++] = new MutableEntry(mc, i, key, vals[i]);
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return result;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void forEachForward(Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  int mc = expectedModCount;
  char[] keys = this.keys;
  int[] vals = this.vals;
  char free = this.free;
  int index = this.index;
  for (int i = index - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (index != this.index || mc != modCount()) {
    throw new java.util.ConcurrentModificationException();
  }
  this.index = -1;
  curKey = free;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public boolean forEachWhile(@Nonnull  Predicate<? super Map.Entry<Character, Float>> predicate) {
  if (predicate == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return true;
  boolean terminated = false;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      if (!predicate.test(new MutableEntry(mc, i, key, vals[i]))) {
        terminated = true;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return !terminated;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public final boolean reverseAddAllTo(ObjCollection<? super Map.Entry<Character, Float>> c) {
  if (isEmpty())
    return false;
  boolean changed = false;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      changed |= c.add(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return changed;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public final void forEach(@Nonnull Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void forEachRemaining(@Nonnull Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  int mc = expectedModCount;
  char[] keys = this.keys;
  int[] vals = this.vals;
  char free = this.free;
  int nextI = nextIndex;
  for (int i = nextI; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (nextI != nextIndex || mc != modCount()) {
    throw new java.util.ConcurrentModificationException();
  }
  nextIndex = -1;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void forEachForward(Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  int mc = expectedModCount;
  char[] keys = this.keys;
  int[] vals = this.vals;
  char free = this.free;
  int index = this.index;
  for (int i = index - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (index != this.index || mc != modCount()) {
    throw new java.util.ConcurrentModificationException();
  }
  this.index = -1;
  curKey = free;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public void forEachRemaining(@Nonnull Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  int mc = expectedModCount;
  char[] keys = this.keys;
  int[] vals = this.vals;
  char free = this.free;
  int nextI = nextIndex;
  for (int i = nextI; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (nextI != nextIndex || mc != modCount()) {
    throw new java.util.ConcurrentModificationException();
  }
  nextIndex = -1;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
@Nonnull
public final Object[] toArray() {
  int size = size();
  Object[] result = new Object[size];
  if (size == 0)
    return result;
  int resultIndex = 0;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      result[resultIndex++] = new MutableEntry(mc, i, key, vals[i]);
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return result;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public final void forEach(@Nonnull Consumer<? super Map.Entry<Character, Float>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      action.accept(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public final boolean reverseAddAllTo(ObjCollection<? super Map.Entry<Character, Float>> c) {
  if (isEmpty())
    return false;
  boolean changed = false;
  int mc = modCount();
  char free = freeValue;
  char[] keys = set;
  int[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    char key;
    if ((key = keys[i]) != free) {
      changed |= c.add(new MutableEntry(mc, i, key, vals[i]));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return changed;
}
origin: net.openhft/koloboke-impl-jdk6-7

NoRemovedEntryIterator(int mc) {
  expectedModCount = mc;
  char[] keys = this.keys = set;
  int[] vals = this.vals = values;
  char free = this.free = freeValue;
  int nextI = keys.length;
  while (--nextI >= 0) {
    char key;
    if ((key = keys[nextI]) != free) {
      next = new MutableEntry(mc, nextI, key, vals[nextI]);
      break;
    }
  }
  nextIndex = nextI;
}
origin: net.openhft/koloboke-impl-jdk8

NoRemovedEntryIterator(int mc) {
  expectedModCount = mc;
  char[] keys = this.keys = set;
  int[] vals = this.vals = values;
  char free = this.free = freeValue;
  int nextI = keys.length;
  while (--nextI >= 0) {
    char key;
    if ((key = keys[nextI]) != free) {
      next = new MutableEntry(mc, nextI, key, vals[nextI]);
      break;
    }
  }
  nextIndex = nextI;
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public Map.Entry<Character, Float> elem() {
  char curKey;
  if ((curKey = this.curKey) != free) {
    return new MutableEntry(expectedModCount, index, curKey, curValue);
  } else {
    throw new java.lang.IllegalStateException();
  }
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashSeparateKVCharFloatMapGO$MutableEntry

Most used methods

  • <init>
  • updateValueInTable

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JPanel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
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