Tabnine Logo
UpdatableLHashSeparateKVObjCharMapGO.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
net.openhft.koloboke.collect.impl.hash.UpdatableLHashSeparateKVObjCharMapGO

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

origin: net.openhft/koloboke-impl-jdk6-7

@Override
public String toString() {
  if (isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  Object[] keys = set;
  char[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    K key;
    // noinspection unchecked
    if ((key = (K) keys[i]) != FREE) {
      sb.append(' ');
      sb.append(key != this ? key : "(this Map)");
      sb.append('=');
      sb.append(vals[i]);
      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 String toString() {
  if (isEmpty())
    return "{}";
  StringBuilder sb = new StringBuilder();
  int elementCount = 0;
  int mc = modCount();
  Object[] keys = set;
  char[] vals = values;
  for (int i = keys.length - 1; i >= 0; i--) {
    K key;
    // noinspection unchecked
    if ((key = (K) keys[i]) != FREE) {
      sb.append(' ');
      sb.append(key != this ? key : "(this Map)");
      sb.append('=');
      sb.append(vals[i]);
      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();
}
net.openhft.koloboke.collect.impl.hashUpdatableLHashSeparateKVObjCharMapGOsize

Popular methods of UpdatableLHashSeparateKVObjCharMapGO

  • computeIfAbsentNullKey
  • computeNullKey
  • copy
  • defaultValue
  • incrementModCount
  • index
  • init
  • initForRehash
  • insert
  • isEmpty
  • keyEquals
  • keyHashCode
  • keyEquals,
  • keyHashCode,
  • mergeNullKey,
  • modCount,
  • nullableKeyHashCode,
  • postInsertHook,
  • put,
  • putAll,
  • remove,
  • replace

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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