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

How to use
isEmpty
method
in
com.koloboke.collect.impl.hash.MutableQHashSeparateKVShortLongMapGO

Best Java code snippets using com.koloboke.collect.impl.hash.MutableQHashSeparateKVShortLongMapGO.isEmpty (Showing top 18 results out of 315)

origin: com.koloboke/koloboke-impl-jdk8

@Override
public void replaceAll(
    BiFunction<? super Short, ? super Long, ? extends Long> function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        vals[i] = function.apply(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        vals[i] = function.apply(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk8

@Override
public void forEach(BiConsumer<? super Short, ? super Long> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        action.accept(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        action.accept(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk8

@Override
public String toString() {
  if (this.isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
origin: com.koloboke/koloboke-impl-jdk6-7

@Override
public String toString() {
  if (this.isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
origin: com.koloboke/koloboke-impl-jdk8

@Override
public void replaceAll(ShortLongToLongFunction function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        vals[i] = function.applyAsLong(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        vals[i] = function.applyAsLong(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk6-7

@Override
public void forEach(ShortLongConsumer action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        action.accept(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        action.accept(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk6-7

public void forEach(BiConsumer<? super Short, ? super Long> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        action.accept(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        action.accept(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk8

@Override
public void forEach(ShortLongConsumer action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        action.accept(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        action.accept(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk6-7

@Override
public void replaceAll(ShortLongToLongFunction function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        vals[i] = function.applyAsLong(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        vals[i] = function.applyAsLong(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk6-7

public void replaceAll(
    BiFunction<? super Short, ? super Long, ? extends Long> function) {
  if (function == null)
    throw new java.lang.NullPointerException();
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        vals[i] = function.apply(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        vals[i] = function.apply(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk8

if (predicate == null)
  throw new java.lang.NullPointerException();
if (this.isEmpty())
  return true;
boolean terminated = false;
origin: com.koloboke/koloboke-impl-jdk6-7

if (predicate == null)
  throw new java.lang.NullPointerException();
if (this.isEmpty())
  return true;
boolean terminated = false;
origin: com.koloboke/koloboke-impl-jdk6-7

@Override
public void reversePutAllTo(InternalShortLongMapOps m) {
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        m.justPut(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        m.justPut(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk8

@Override
public boolean allEntriesContainingIn(InternalShortLongMapOps m) {
  if (this.isEmpty())
    return true;
  boolean containsAll = true;
origin: com.koloboke/koloboke-impl-jdk8

@Override
public void reversePutAllTo(InternalShortLongMapOps m) {
  if (this.isEmpty())
    return;
  int mc = modCount();
  short free = freeValue;
  short removed = removedValue;
  short[] keys = set;
  long[] vals = values;
  if (noRemoved()) {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free) {
        m.justPut(key, vals[i]);
      }
    }
  } else {
    for (int i = keys.length - 1; i >= 0; i--) {
      short key;
      if ((key = keys[i]) != free && key != removed) {
        m.justPut(key, vals[i]);
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: com.koloboke/koloboke-impl-jdk6-7

@Override
public boolean allEntriesContainingIn(InternalShortLongMapOps m) {
  if (this.isEmpty())
    return true;
  boolean containsAll = true;
origin: com.koloboke/koloboke-impl-jdk8

if (filter == null)
  throw new java.lang.NullPointerException();
if (this.isEmpty())
  return false;
boolean changed = false;
origin: com.koloboke/koloboke-impl-jdk6-7

if (filter == null)
  throw new java.lang.NullPointerException();
if (this.isEmpty())
  return false;
boolean changed = false;
com.koloboke.collect.impl.hashMutableQHashSeparateKVShortLongMapGOisEmpty

Popular methods of MutableQHashSeparateKVShortLongMapGO

  • changeFree
  • changeRemoved
  • clear
  • containsEntry
  • containsValue
  • currentLoad
  • defaultValue
  • doClear
  • hashCode
  • hashConfig
  • incrementModCount
  • index
  • incrementModCount,
  • index,
  • init,
  • initForRehash,
  • insert,
  • modCount,
  • move,
  • noRemoved,
  • postFreeSlotInsertHook

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best IntelliJ 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