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

How to use
getKey
method
in
com.netflix.hollow.zenoadapter.util.ObjectIdentityOrdinalMap$Entry

Best Java code snippets using com.netflix.hollow.zenoadapter.util.ObjectIdentityOrdinalMap$Entry.getKey (Showing top 2 results out of 315)

origin: Netflix/hollow

public synchronized void put(Object object, int hashCode, int ordinal) {
  int index = index(hashCode, entries.length);
  Entry current = entries[index];
  Entry prev = null;
  while (current != null) {
    if (current.hash() == hashCode) {
      Object currentObject = current.getKey();
      if( currentObject == null){
        deleteEntry(index, current, prev);
        current = current.next;
        continue;
      } else if (currentObject == object) {
        return;
      }
    }
    prev = current;
    current = current.next;
  }
  count++;
  Entry first = entries[index];
  Entry entry = new Entry(object, hashCode, ordinal, first);
  entries[index] = entry;
  entry.next = first;
  checkSize();
  return;
}
origin: Netflix/hollow

public synchronized Entry get(Object object, int hashCode) {
  int index = index(hashCode, entries.length);
  Entry current = entries[index];
  Entry prev = null;
  while (current != null) {
    if (current.hash() == hashCode) {
      Object currentObject = current.getKey();
      if( currentObject == null){
        deleteEntry(index, current, prev);
        current = current.next;
        continue;
      } else if (currentObject == object) {
        return current;
      }
    }
    prev = current;
    current = current.next;
  }
  return null;
}
com.netflix.hollow.zenoadapter.utilObjectIdentityOrdinalMap$EntrygetKey

Popular methods of ObjectIdentityOrdinalMap$Entry

  • getOrdinal
  • <init>
    Creates new entry.
  • hash

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Notification (javax.management)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 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