Tabnine Logo
UpdatableQHashParallelKVByteByteMapGO$EntryView.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableQHashParallelKVByteByteMapGO$EntryView

Best Java code snippets using net.openhft.koloboke.collect.impl.hash.UpdatableQHashParallelKVByteByteMapGO$EntryView.isEmpty (Showing top 12 results out of 315)

origin: net.openhft/koloboke-impl-jdk8

@Override
public String toString() {
  if (isEmpty())
    return "[]";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      sb.append(' ');
      sb.append(key);
      sb.append('=');
      sb.append((byte) (entry >>> 8));
      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 String toString() {
  if (isEmpty())
    return "[]";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      sb.append(' ');
      sb.append(key);
      sb.append('=');
      sb.append((byte) (entry >>> 8));
      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 final void forEach(@Nonnull Consumer<? super Map.Entry<Byte, Byte>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      action.accept(new MutableEntry(mc, i, key, (byte) (entry >>> 8)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
origin: net.openhft/koloboke-impl-jdk6-7

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

@Override
public final boolean allContainingIn(ObjCollection<?> c) {
  if (isEmpty())
    return true;
  boolean containsAll = true;
  ReusableEntry e = new ReusableEntry();
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      if (!c.contains(e.with(key, (byte) (entry >>> 8)))) {
        containsAll = false;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return containsAll;
}
origin: net.openhft/koloboke-impl-jdk8

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

@Override
public final boolean allContainingIn(ObjCollection<?> c) {
  if (isEmpty())
    return true;
  boolean containsAll = true;
  ReusableEntry e = new ReusableEntry();
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      if (!c.contains(e.with(key, (byte) (entry >>> 8)))) {
        containsAll = false;
        break;
      }
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return containsAll;
}
origin: net.openhft/koloboke-impl-jdk6-7

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

@Override
public boolean reverseRemoveAllFrom(ObjSet<?> s) {
  if (isEmpty() || s.isEmpty())
    return false;
  boolean changed = false;
  ReusableEntry e = new ReusableEntry();
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      changed |= s.remove(e.with(key, (byte) (entry >>> 8)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return changed;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public boolean reverseRemoveAllFrom(ObjSet<?> s) {
  if (isEmpty() || s.isEmpty())
    return false;
  boolean changed = false;
  ReusableEntry e = new ReusableEntry();
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      changed |= s.remove(e.with(key, (byte) (entry >>> 8)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
  return changed;
}
origin: net.openhft/koloboke-impl-jdk8

@Override
public final boolean reverseAddAllTo(ObjCollection<? super Map.Entry<Byte, Byte>> c) {
  if (isEmpty())
    return false;
  boolean changed = false;
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      changed |= c.add(new MutableEntry(mc, i, key, (byte) (entry >>> 8)));
    }
  }
  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<Byte, Byte>> action) {
  if (action == null)
    throw new java.lang.NullPointerException();
  if (isEmpty())
    return;
  int mc = modCount();
  byte free = freeValue;
  char[] tab = table;
  int entry;
  for (int i = tab.length - 1; i >= 0; i--) {
    byte key;
    if ((key = (byte) (entry = tab[i])) != free) {
      action.accept(new MutableEntry(mc, i, key, (byte) (entry >>> 8)));
    }
  }
  if (mc != modCount())
    throw new java.util.ConcurrentModificationException();
}
net.openhft.koloboke.collect.impl.hashUpdatableQHashParallelKVByteByteMapGO$EntryViewisEmpty

Popular methods of UpdatableQHashParallelKVByteByteMapGO$EntryView

  • <init>
  • equivalence
  • size

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • 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