congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UpdatableQHashParallelKVFloatFloatMapGO.modCount
Code IndexAdd Tabnine to your IDE (free)

How to use
modCount
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableQHashParallelKVFloatFloatMapGO

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

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

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

@Override
public void setValue(float value) {
  if (curKey != FREE_BITS) {
    if (expectedModCount == modCount()) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), Float.floatToIntBits(value));
    } else {
      throw new java.util.ConcurrentModificationException();
    }
  } else {
    throw new java.lang.IllegalStateException();
  }
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
public void setValue(float value) {
  if (curKey != FREE_BITS) {
    if (expectedModCount == modCount()) {
      U.putInt(tab, LONG_BASE + FLOAT_VALUE_OFFSET + (((long) (index)) << LONG_SCALE_SHIFT), Float.floatToIntBits(value));
    } else {
      throw new java.util.ConcurrentModificationException();
    }
  } else {
    throw new java.lang.IllegalStateException();
  }
}
origin: net.openhft/koloboke-impl-jdk8

@Override
@Nonnull
public ObjIterator<Map.Entry<Float, Float>> iterator() {
  int mc = modCount();
  return new NoRemovedEntryIterator(mc);
}
origin: net.openhft/koloboke-impl-jdk8

@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-jdk6-7

@Nonnull
@Override
public FloatFloatCursor cursor() {
  int mc = modCount();
  return new NoRemovedMapCursor(mc);
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
@Nonnull
public ObjIterator<Map.Entry<Float, Float>> iterator() {
  int mc = modCount();
  return new NoRemovedEntryIterator(mc);
}
origin: net.openhft/koloboke-impl-jdk6-7

@Nonnull
@Override
public ObjCursor<Map.Entry<Float, Float>> cursor() {
  int mc = modCount();
  return new NoRemovedEntryCursor(mc);
}
origin: net.openhft/koloboke-impl-jdk6-7

@Nonnull
@Override
public FloatCursor cursor() {
  int mc = modCount();
  return new NoRemovedValueCursor(mc);
}
origin: net.openhft/koloboke-impl-jdk8

@Nonnull
@Override
public FloatFloatCursor cursor() {
  int mc = modCount();
  return new NoRemovedMapCursor(mc);
}
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
@Nonnull
public FloatIterator iterator() {
  int mc = modCount();
  return new NoRemovedValueIterator(mc);
}
origin: net.openhft/koloboke-impl-jdk8

@Nonnull
@Override
public ObjCursor<Map.Entry<Float, Float>> cursor() {
  int mc = modCount();
  return new NoRemovedEntryCursor(mc);
}
origin: net.openhft/koloboke-impl-jdk8

@Nonnull
@Override
public FloatCursor cursor() {
  int mc = modCount();
  return new NoRemovedValueCursor(mc);
}
origin: net.openhft/koloboke-impl-jdk6-7

@Override
@Nonnull
public FloatIterator iterator() {
  int mc = modCount();
  return new NoRemovedValueIterator(mc);
}
origin: net.openhft/koloboke-impl-jdk8

final void move(ParallelKVFloatFloatQHash 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

final void copy(ParallelKVFloatFloatQHash 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

final void move(ParallelKVFloatFloatQHash 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

final void copy(ParallelKVFloatFloatQHash hash) {
  int myMC = modCount(), hashMC = hash.modCount();
  super.copy(hash);
  if (myMC != modCount() || hashMC != hash.modCount())
    throw new ConcurrentModificationException();
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashParallelKVFloatFloatMapGOmodCount

Popular methods of UpdatableQHashParallelKVFloatFloatMapGO

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

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top 12 Jupyter Notebook extensions
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