Tabnine Logo
Int2IntRBTreeMap.readTree
Code IndexAdd Tabnine to your IDE (free)

How to use
readTree
method
in
it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap

Best Java code snippets using it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap.readTree (Showing top 2 results out of 315)

origin: it.unimi.dsi/fastutil

  private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    /*
     * The storedComparator is now correctly set, but we must restore on-the-fly the
     * actualComparator.
     */
    setActualComparator();
    allocatePaths();
    if (count != 0) {
      tree = readTree(s, count, null, null);
      Entry e;
      e = tree;
      while (e.left() != null)
        e = e.left();
      firstEntry = e;
      e = tree;
      while (e.right() != null)
        e = e.right();
      lastEntry = e;
    }
  }
}
origin: it.unimi.dsi/fastutil

top.left(readTree(s, leftN, pred, top));
top.key = s.readInt();
top.value = s.readInt();
top.black(true);
top.right(readTree(s, rightN, top, succ));
if (n + 2 == ((n + 2) & -(n + 2)))
  top.right.black(false); // Quick test for determining whether n + 2 is a power of 2.
it.unimi.dsi.fastutil.intsInt2IntRBTreeMapreadTree

Javadoc

Reads the given number of entries from the input stream, returning the corresponding tree.

Popular methods of Int2IntRBTreeMap

  • <init>
    Creates a new tree map using the elements of two parallel arrays and the given comparator.
  • containsValue
  • put
  • firstIntKey
  • get
  • size
  • add
    Returns a node with key k in the balanced tree, creating one with defRetValue if necessary.
  • allocatePaths
  • clear
  • compare
    Compares two keys in the right way. This method uses the #actualComparator if it is non- null. Other
  • containsKey
  • findKey
    Returns the entry corresponding to the given key, if it is in the tree; null, otherwise.
  • containsKey,
  • findKey,
  • headMap,
  • int2IntEntrySet,
  • locateKey,
  • putAll,
  • remove,
  • setActualComparator,
  • subMap

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
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