congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ObjectIdentityOrdinalMap$Segment.resize
Code IndexAdd Tabnine to your IDE (free)

How to use
resize
method
in
com.netflix.hollow.zenoadapter.util.ObjectIdentityOrdinalMap$Segment

Best Java code snippets using com.netflix.hollow.zenoadapter.util.ObjectIdentityOrdinalMap$Segment.resize (Showing top 3 results out of 315)

origin: Netflix/hollow

private void checkSize() {
  if( count >= minThreshold && count <= maxThreshold ){
    return;
  }
  int newCapacity;
  if( count < minThreshold ) {
    newCapacity = Math.max(MINIMUM_CAPACITY, entries.length >> 1);
  } else {
    newCapacity = Math.min(MAXIMUM_CAPACITY, entries.length << 1);
  }
  // nothing should be done, since capacity is not changed
  if (newCapacity == entries.length) {
    return;
  }
  resize(newCapacity);
}
origin: Netflix/hollow

public synchronized void clear() {
  Arrays.fill(entries, null);
  count = 0;
  resize(MINIMUM_CAPACITY);
}
origin: Netflix/hollow

public Segment(){
  resize(MINIMUM_CAPACITY);
}
com.netflix.hollow.zenoadapter.utilObjectIdentityOrdinalMap$Segmentresize

Popular methods of ObjectIdentityOrdinalMap$Segment

  • <init>
  • checkSize
  • clear
  • deleteEntry
  • get
  • index
  • put
  • size

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Path (java.nio.file)
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFileChooser (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